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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Consumes another item.merge
(Aggregators.AvgConsumer other) Merges this object with the supplied object.
-
Field Details
-
sum
public double sum -
unit
-
count
public int count
-
-
Constructor Details
-
AvgConsumer
-
-
Method Details
-
consume
Description copied from interface:IItemConsumer
Consumes another item. -
merge
Description copied from interface:IItemConsumer
Merges 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
-