Package org.openjdk.jmc.common.item
Class Aggregators.MinMaxConsumer<V extends Comparable<V>>
- java.lang.Object
-
- org.openjdk.jmc.common.item.Aggregators.MinMaxConsumer<V>
-
- All Implemented Interfaces:
IItemConsumer<Aggregators.MinMaxConsumer<V>>
- Enclosing class:
- Aggregators
public static class Aggregators.MinMaxConsumer<V extends Comparable<V>> extends Object implements IItemConsumer<Aggregators.MinMaxConsumer<V>>
-
-
Constructor Summary
Constructors Constructor Description MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor, boolean max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(IItem item)Consumes another item.Aggregators.MinMaxConsumer<V>merge(Aggregators.MinMaxConsumer<V> other)Merges this object with the supplied object.
-
-
-
Constructor Detail
-
MinMaxConsumer
public MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor, boolean max)
-
-
Method Detail
-
consume
public void consume(IItem item)
Description copied from interface:IItemConsumerConsumes another item.- Specified by:
consumein interfaceIItemConsumer<V extends Comparable<V>>
-
merge
public Aggregators.MinMaxConsumer<V> merge(Aggregators.MinMaxConsumer<V> 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.- Specified by:
mergein interfaceIItemConsumer<V extends Comparable<V>>- Parameters:
other- another instance to merge with- Returns:
- the merged instance
-
-