Top Description Fields Constructors Methods
org.eclipse.collections.impl.collector

public Class BigDecimalSummaryStatistics

extends Object
implements Procedure<BigDecimal>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.math.BigDecimal, .MathContext, java.util.Optional, org.eclipse.collections.api.block.procedure.Procedure

BigDecimalSummaryStatistics can be used to keep a rolling count, sum, min, max and average of BigDecimal values.
Since
8.1
See Also
Collectors2#summarizingBigDecimal(org.eclipse.collections.api.block.function.Function)

Field Summary

Modifier and TypeField and Description
private long
private BigDecimal
private BigDecimal
private static final long
private BigDecimal

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BigDecimal
public BigDecimal
public long
public BigDecimal
public Optional<BigDecimal>
public BigDecimal
public Optional<BigDecimal>
public BigDecimal
public BigDecimalSummaryStatistics
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private long count
maxback to summary
private BigDecimal max
minback to summary
private BigDecimal min
serialVersionUIDback to summary
private static final long serialVersionUID
sumback to summary
private BigDecimal sum

Constructor Detail

BigDecimalSummaryStatisticsback to summary
public BigDecimalSummaryStatistics()

Method Detail

getAverageback to summary
public BigDecimal getAverage(MathContext context)
getAverageback to summary
public BigDecimal getAverage()
getCountback to summary
public long getCount()
getMaxback to summary
public BigDecimal getMax()
getMaxOptionalback to summary
public Optional<BigDecimal> getMaxOptional()
getMinback to summary
public BigDecimal getMin()
getMinOptionalback to summary
public Optional<BigDecimal> getMinOptional()
getSumback to summary
public BigDecimal getSum()
mergeback to summary
public BigDecimalSummaryStatistics merge(BigDecimalSummaryStatistics summaryStatistics)
valueback to summary
public void value(BigDecimal each)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override