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 BigDecimalgetAverage()BigDecimalgetAverage(MathContext context)longgetCount()BigIntegergetMax()Optional<BigInteger>getMaxOptional()BigIntegergetMin()Optional<BigInteger>getMinOptional()BigIntegergetSum()BigIntegerSummaryStatisticsmerge(BigIntegerSummaryStatistics summaryStatistics)voidvalue(BigInteger each)
-
-
-
Method Detail
-
value
public void value(BigInteger each)
- Specified by:
valuein 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)
-
-