Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public final Class SelectProcedure<T>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.util.Collection, org.eclipse.collections.api.block.predicate.Predicate, org.eclipse.collections.api.block.procedure.Procedure

Applies a predicate to an object to determine if it should be added to a target collection.
Since
1.0

Field Summary

Modifier and TypeField and Description
private final Collection<T>
private final Predicate<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
public
SelectProcedure(Predicate<? super T> newPredicate, Collection<T> targetCollection)

Method Summary

Modifier and TypeMethod and Description
public Collection<T>
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectionback to summary
private final Collection<T> collection
predicateback to summary
private final Predicate<? super T> predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SelectProcedureback to summary
public SelectProcedure(Predicate<? super T> newPredicate, Collection<T> targetCollection)

Method Detail

getCollectionback to summary
public Collection<T> getCollection()
valueback to summary
public void value(T object)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override