Package org.openjdk.jmc.common.item
Class Aggregators.AvgConsumer
- java.lang.Object
- 
- org.openjdk.jmc.common.item.Aggregators.AvgConsumer
 
- 
- All Implemented Interfaces:
- IItemConsumer<Aggregators.AvgConsumer>
 - Enclosing class:
- Aggregators
 
 public static class Aggregators.AvgConsumer extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description AvgConsumer(IMemberAccessor<? extends IQuantity,IItem> accessor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(IItem item)Consumes another item.Aggregators.AvgConsumermerge(Aggregators.AvgConsumer other)Merges this object with the supplied object.
 
- 
- 
- 
Field Detail- 
sumpublic double sum 
 - 
unitpublic IUnit unit 
 - 
countpublic int count 
 
- 
 - 
Constructor Detail- 
AvgConsumerpublic AvgConsumer(IMemberAccessor<? extends IQuantity,IItem> accessor) 
 
- 
 - 
Method Detail- 
consumepublic void consume(IItem item) Description copied from interface:IItemConsumerConsumes another item.
 - 
mergepublic Aggregators.AvgConsumer merge(Aggregators.AvgConsumer other) Description copied from interface:IItemConsumerMerges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.- Parameters:
- other- another instance to merge with
- Returns:
- the merged instance
 
 
- 
 
-