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)
IItemConsumer
public Aggregators.AvgConsumer merge(Aggregators.AvgConsumer other)
IItemConsumer
other
- another instance to merge withCopyright © 2020. All rights reserved.