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

public final Class CollectProcedure<T, V>

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.function.Function, org.eclipse.collections.api.block.procedure.Procedure

Applies a function to an object and adds the result to a target collection.

Field Summary

Modifier and TypeField and Description
private final Collection<V>
private final Function<? super T, ? extends V>
private static final long

Constructor Summary

AccessConstructor and Description
public
CollectProcedure(Function<? super T, ? extends V> function, Collection<V> targetCollection)

Method Summary

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

Field Detail

collectionback to summary
private final Collection<V> collection
functionback to summary
private final Function<? super T, ? extends V> function
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CollectProcedureback to summary
public CollectProcedure(Function<? super T, ? extends V> function, Collection<V> targetCollection)

Method Detail

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

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

Annotations
@Override