Class FastListCollectProcedure<T,V>

java.lang.Object
org.eclipse.collections.impl.block.procedure.FastListCollectProcedure<T,V>
All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public final class FastListCollectProcedure<T,V> extends Object implements Procedure<T>
Applies a function to an object and adds the result to a target fastList.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • function

      private final Function<? super T,? extends V> function
    • fastList

      private final FastList<V> fastList
  • Constructor Details

    • FastListCollectProcedure

      public FastListCollectProcedure(Function<? super T,? extends V> function, FastList<V> targetCollection)
  • Method Details

    • value

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

      public FastList<V> getFastList()