public class MaxComparatorProcedure<T> extends ComparatorProcedure<T>
that holds on to the maximum element seen so far,
determined by the Comparator
Constructor and Description |
---|
MaxComparatorProcedure(Comparator<? super T> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
value(T each) |
getResult
public MaxComparatorProcedure(Comparator<? super T> comparator)
public void value(T each)
Copyright © 2004–2017. All rights reserved.