Class RejectProcedure<T>

java.lang.Object
org.eclipse.collections.impl.block.procedure.RejectProcedure<T>
All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public final class RejectProcedure<T> extends Object implements Procedure<T>
Applies a predicate to an object to determine if it should be added to a target collection.
See Also:
  • Constructor Details

    • RejectProcedure

      public RejectProcedure(Predicate<? super T> newPredicate, Collection<T> targetCollection)
  • Method Details

    • value

      public void value(T object)
      Specified by:
      value in interface Procedure<T>
    • getCollection

      public Collection<T> getCollection()