Class BigIntegerSummaryStatistics
- java.lang.Object
-
- org.eclipse.collections.impl.collector.BigIntegerSummaryStatistics
-
- All Implemented Interfaces:
Serializable
,Consumer<BigInteger>
,Procedure<BigInteger>
public class BigIntegerSummaryStatistics extends Object implements Procedure<BigInteger>
BigIntegerSummaryStatistics can be used to keep a rolling count, sum, min, max and average of BigInteger values.
-
-
Constructor Summary
Constructors Constructor Description BigIntegerSummaryStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
getAverage()
BigDecimal
getAverage(MathContext context)
long
getCount()
BigInteger
getMax()
Optional<BigInteger>
getMaxOptional()
BigInteger
getMin()
Optional<BigInteger>
getMinOptional()
BigInteger
getSum()
BigIntegerSummaryStatistics
merge(BigIntegerSummaryStatistics summaryStatistics)
void
value(BigInteger each)
-
-
-
Method Detail
-
value
public void value(BigInteger each)
- Specified by:
value
in interfaceProcedure<BigInteger>
-
getCount
public long getCount()
-
getSum
public BigInteger getSum()
-
getMin
public BigInteger getMin()
-
getMinOptional
public Optional<BigInteger> getMinOptional()
-
getMax
public BigInteger getMax()
-
getMaxOptional
public Optional<BigInteger> getMaxOptional()
-
getAverage
public BigDecimal getAverage(MathContext context)
-
getAverage
public BigDecimal getAverage()
-
merge
public BigIntegerSummaryStatistics merge(BigIntegerSummaryStatistics summaryStatistics)
-
-