public static class Aggregators.AvgConsumer extends Object
| 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 withCopyright © 2019. All rights reserved.