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 SummaryConstructors Constructor Description MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor, boolean max)
 - 
Method SummaryAll 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- 
MinMaxConsumerpublic MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor, boolean max) 
 
- 
 - 
Method Detail- 
consumepublic void consume(IItem item) Description copied from interface:IItemConsumerConsumes another item.- Specified by:
- consumein interface- IItemConsumer<V extends Comparable<V>>
 
 - 
mergepublic 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 interface- IItemConsumer<V extends Comparable<V>>
- Parameters:
- other- another instance to merge with
- Returns:
- the merged instance
 
 
- 
 
-