Class SelectProcedure<T>
java.lang.Object
org.eclipse.collections.impl.block.procedure.SelectProcedure<T>
- All Implemented Interfaces:
Serializable
,Consumer<T>
,Procedure<T>
public final class SelectProcedure<T> extends Object implements Procedure<T>
Applies a predicate to an object to determine if it should be added to a target collection.
- Since:
- 1.0
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SelectProcedure(Predicate<? super T> newPredicate, Collection<T> targetCollection)
-
Method Summary
Modifier and Type Method Description Collection<T>
getCollection()
void
value(T object)
-
Constructor Details
-
Method Details