Class IfProcedureWith<T,P>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.IfProcedureWith<T,P>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.BiConsumer<T,P>
,Procedure2<T,P>
public final class IfProcedureWith<T,P> extends java.lang.Object implements Procedure2<T,P>
A conditional parameterized two argument procedure that effectively filters which objects should be used- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<? super T>
predicate
private Procedure2<? super T,? super P>
procedure
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description IfProcedureWith(Predicate<? super T> newPredicate, Procedure2<? super T,? super P> procedure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
value(T each, P parm)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.block.procedure.Procedure2
accept
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
procedure
private final Procedure2<? super T,? super P> procedure
-
-
Constructor Detail
-
IfProcedureWith
public IfProcedureWith(Predicate<? super T> newPredicate, Procedure2<? super T,? super P> procedure)
-
-