public class MaxComparatorProcedure<T> extends ComparatorProcedure<T>
Procedure
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, isVisitedAtLeastOnce
public MaxComparatorProcedure(Comparator<? super T> comparator)
public void value(T each)
Copyright © 2004–2016. All rights reserved.