Class MaxByProcedure<T,V extends Comparable<? super V>>
java.lang.Object
org.eclipse.collections.impl.block.procedure.MaxByProcedure<T,V>
- All Implemented Interfaces:
Serializable,Consumer<T>,Procedure<T>
public class MaxByProcedure<T,V extends Comparable<? super V>> extends Object implements Procedure<T>
Implementation of
Procedure that holds on to the maximum element seen so far,
determined by the Function.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MaxByProcedure(Function<? super T,? extends V> function) -
Method Summary
Modifier and Type Method Description TgetResult()Optional<T>getResultOptional()booleanisVisitedAtLeastOnce()voidvalue(T each)
-
Constructor Details
-
Method Details
-
isVisitedAtLeastOnce
public boolean isVisitedAtLeastOnce() -
getResult
-
getResultOptional
-
value
-