Interface Aggregator<T>
- 
- Type Parameters:
- T- the type of values being aggregated (e.g., Double).
 - All Known Implementing Classes:
- MeanAggregator
 
 public interface Aggregator<T>Aggregates added values into one "aggregate" measure.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddValue(T value)Addsvalueto the group of values being aggregated.TgetAggregate()Returns the aggregate measure of all added values.longgetCount()Returns the number of values that are aggregated.voidreset()Remove all added values from the group of values being aggregated.
 
- 
- 
- 
Method Detail- 
addValuevoid addValue(T value) Addsvalueto the group of values being aggregated.
 - 
getAggregateT getAggregate() Returns the aggregate measure of all added values.
 - 
getCountlong getCount() Returns the number of values that are aggregated.
 - 
resetvoid reset() Remove all added values from the group of values being aggregated.
 
- 
 
-