public abstract static class Aggregators.Avg extends Aggregators.FieldAggregatorBase<IQuantity,Aggregators.AvgConsumer>
Constructor and Description |
---|
Avg(java.lang.String name,
java.lang.String description,
ContentType<IQuantity> ct) |
Modifier and Type | Method and Description |
---|---|
IQuantity |
getValue(Aggregators.AvgConsumer consumer) |
Aggregators.AvgConsumer |
newItemConsumer(IType<IItem> type) |
acceptType, doGetAccessor, getAccessor
getValue
getDescription, getName, getValueType
public Avg(java.lang.String name, java.lang.String description, ContentType<IQuantity> ct)
public Aggregators.AvgConsumer newItemConsumer(IType<IItem> type)
type
- an item type to get an item consumer forpublic IQuantity getValue(Aggregators.AvgConsumer consumer)
getValue
in class Aggregators.MergingAggregator<IQuantity,Aggregators.AvgConsumer>