Class MinProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.MinProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public class MinProcedure<T> 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 T
result
private static long
serialVersionUID
protected boolean
visitedAtLeastOnce
-
Constructor Summary
Constructors Constructor Description MinProcedure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getResult()
java.util.Optional<T>
getResultOptional()
void
value(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
visitedAtLeastOnce
protected boolean visitedAtLeastOnce
-
result
protected T result
-
-