Class CollectionAddProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.CollectionAddProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class CollectionAddProcedure<T> extends java.lang.Object implements Procedure<T>
CollectionAddProcedure adds elements to the specified collection when one of the block methods are called.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<T>
collection
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CollectionAddProcedure(java.util.Collection<T> newCollection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<T>
getResult()
static <T> CollectionAddProcedure<T>
on(java.util.Collection<T> newCollection)
java.lang.String
toString()
void
value(T object)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
collection
private final java.util.Collection<T> collection
-
-
Constructor Detail
-
CollectionAddProcedure
public CollectionAddProcedure(java.util.Collection<T> newCollection)
-
-
Method Detail
-
on
public static <T> CollectionAddProcedure<T> on(java.util.Collection<T> newCollection)
-
getResult
public java.util.Collection<T> getResult()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-