Class BigIntegerSummaryStatistics
- java.lang.Object
-
- org.eclipse.collections.impl.collector.BigIntegerSummaryStatistics
-
- All Implemented Interfaces:
java.io.Serializable,java.util.function.Consumer<java.math.BigInteger>,Procedure<java.math.BigInteger>
public class BigIntegerSummaryStatistics extends java.lang.Object implements Procedure<java.math.BigInteger>
BigIntegerSummaryStatistics can be used to keep a rolling count, sum, min, max and average of BigInteger values.
-
-
Field Summary
Fields Modifier and Type Field Description private longcountprivate java.math.BigIntegermaxprivate java.math.BigIntegerminprivate static longserialVersionUIDprivate java.math.BigIntegersum
-
Constructor Summary
Constructors Constructor Description BigIntegerSummaryStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetAverage()java.math.BigDecimalgetAverage(java.math.MathContext context)longgetCount()java.math.BigIntegergetMax()java.util.Optional<java.math.BigInteger>getMaxOptional()java.math.BigIntegergetMin()java.util.Optional<java.math.BigInteger>getMinOptional()java.math.BigIntegergetSum()BigIntegerSummaryStatisticsmerge(BigIntegerSummaryStatistics summaryStatistics)voidvalue(java.math.BigInteger each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
count
private long count
-
sum
private java.math.BigInteger sum
-
min
private java.math.BigInteger min
-
max
private java.math.BigInteger max
-
-
Method Detail
-
value
public void value(java.math.BigInteger each)
-
getCount
public long getCount()
-
getSum
public java.math.BigInteger getSum()
-
getMin
public java.math.BigInteger getMin()
-
getMinOptional
public java.util.Optional<java.math.BigInteger> getMinOptional()
-
getMax
public java.math.BigInteger getMax()
-
getMaxOptional
public java.util.Optional<java.math.BigInteger> getMaxOptional()
-
getAverage
public java.math.BigDecimal getAverage(java.math.MathContext context)
-
getAverage
public java.math.BigDecimal getAverage()
-
merge
public BigIntegerSummaryStatistics merge(BigIntegerSummaryStatistics summaryStatistics)
-
-