public static class Aggregators.AvgConsumer extends Aggregators.QuantityConsumer<Aggregators.AvgConsumer>
| Modifier and Type | Field and Description |
|---|---|
int |
count |
double |
sum |
IUnit |
unit |
accessor| Constructor and Description |
|---|
AvgConsumer(IMemberAccessor<? extends IQuantity,IItem> accessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(IItem item)
Consumes another item.
|
Aggregators.AvgConsumer |
merge(Aggregators.AvgConsumer other)
Merges this object with the supplied object.
|
public double sum
public IUnit unit
public int count
public AvgConsumer(IMemberAccessor<? extends IQuantity,IItem> accessor)
public void consume(IItem item)
IItemConsumerpublic Aggregators.AvgConsumer merge(Aggregators.AvgConsumer other)
IItemConsumerother - another instance to merge with