Class MaxComparatorProcedure<T>
java.lang.Object
org.eclipse.collections.impl.block.procedure.ComparatorProcedure<T>
org.eclipse.collections.impl.block.procedure.MaxComparatorProcedure<T>
- All Implemented Interfaces:
Serializable
,Consumer<T>
,Procedure<T>
public class MaxComparatorProcedure<T> extends ComparatorProcedure<T>
Implementation of
Procedure
that holds on to the maximum element seen so far,
determined by the Comparator
.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MaxComparatorProcedure(Comparator<? super T> comparator)
-
Method Summary
Methods inherited from class org.eclipse.collections.impl.block.procedure.ComparatorProcedure
getResult, getResultOptional, isVisitedAtLeastOnce