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