Class FastListCollectProcedure<T,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Consumer<T>, Procedure<T>

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

      • function

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

        private final FastList<V> fastList
    • Constructor Detail

      • FastListCollectProcedure

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

      • value

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

        public FastList<V> getFastList()