Class IfProcedureWith<T,P>

java.lang.Object
org.eclipse.collections.impl.block.procedure.IfProcedureWith<T,P>
All Implemented Interfaces:
Serializable, BiConsumer<T,P>, Procedure2<T,P>

public final class IfProcedureWith<T,P> extends Object implements Procedure2<T,P>
A conditional parameterized two argument procedure that effectively filters which objects should be used
See Also:
  • Constructor Details

    • IfProcedureWith

      public IfProcedureWith(Predicate<? super T> newPredicate, Procedure2<? super T,? super P> procedure)
  • Method Details

    • value

      public void value(T each, P parm)
      Specified by:
      value in interface Procedure2<T,P>