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 long
count
private java.math.BigInteger
max
private java.math.BigInteger
min
private static long
serialVersionUID
private java.math.BigInteger
sum
-
Constructor Summary
Constructors Constructor Description BigIntegerSummaryStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
getAverage()
java.math.BigDecimal
getAverage(java.math.MathContext context)
long
getCount()
java.math.BigInteger
getMax()
java.util.Optional<java.math.BigInteger>
getMaxOptional()
java.math.BigInteger
getMin()
java.util.Optional<java.math.BigInteger>
getMinOptional()
java.math.BigInteger
getSum()
BigIntegerSummaryStatistics
merge(BigIntegerSummaryStatistics summaryStatistics)
void
value(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)
-
-