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