Class IfProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.IfProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class IfProcedure<T> extends java.lang.Object implements Procedure<T>
IfProcedure allows developers to evaluate the specified procedure only when either predicate returns true. If the result of evaluating the predicate is false, and the developer has specified that there is an elseProcedure, then the elseProcedure is evaluated.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Procedure<? super T>
elseProcedure
private Predicate<? super T>
predicate
private Procedure<? super T>
procedure
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
void
value(T object)
-