Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
      • Methods inherited from interface org.eclipse.collections.api.block.procedure.Procedure

        accept
    • Field Detail

      • collection

        private final java.util.Collection<T> collection
    • Constructor Detail

      • CollectionAddProcedure

        public CollectionAddProcedure​(java.util.Collection<T> newCollection)
    • Method Detail

      • value

        public void value​(T object)
        Specified by:
        value in interface Procedure<T>
      • getResult

        public java.util.Collection<T> getResult()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object