Class CollectProcedure<T,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.CollectProcedure<T,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class CollectProcedure<T,V> extends java.lang.Object implements Procedure<T>
Applies a function to an object and adds the result to a target collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<V>
collection
private Function<? super T,? extends V>
function
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CollectProcedure(Function<? super T,? extends V> function, java.util.Collection<V> targetCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<V>
getCollection()
void
value(T object)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
collection
private final java.util.Collection<V> collection
-
-