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 Summary
All 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
-
addValue
void addValue(T value)
Addsvalueto the group of values being aggregated.
-
getAggregate
T getAggregate()
Returns the aggregate measure of all added values.
-
getCount
long getCount()
Returns the number of values that are aggregated.
-
reset
void reset()
Remove all added values from the group of values being aggregated.
-
-