Class MinByProcedure<T,V extends java.lang.Comparable<? super V>>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.MinByProcedure<T,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public class MinByProcedure<T,V extends java.lang.Comparable<? super V>> extends java.lang.Object implements Procedure<T>
Implementation ofProcedure
that holds on to the minimum element seen so far, determined by theFunction
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected V
cachedResultValue
protected Function<? super T,? extends V>
function
protected T
result
private static long
serialVersionUID
protected boolean
visitedAtLeastOnce
-
Constructor Summary
Constructors Constructor Description MinByProcedure(Function<? super T,? extends V> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getResult()
java.util.Optional<T>
getResultOptional()
boolean
isVisitedAtLeastOnce()
void
value(T each)
-