Class CollectionAddProcedure<T>
java.lang.Object
org.eclipse.collections.impl.block.procedure.CollectionAddProcedure<T>
- All Implemented Interfaces:
Serializable
,Consumer<T>
,Procedure<T>
public final class CollectionAddProcedure<T> extends Object implements Procedure<T>
CollectionAddProcedure adds elements to the specified collection when one of the block methods are called.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CollectionAddProcedure(Collection<T> newCollection)
-
Method Summary
Modifier and Type Method Description Collection<T>
getResult()
static <T> CollectionAddProcedure<T>
on(Collection<T> newCollection)
String
toString()
void
value(T object)