Class CollectionAddFunction<V,​C extends Collection<V>>

  • Type Parameters:
    V - the collection element type
    C - the collection type
    All Implemented Interfaces:
    BiConsumer<C,​V>, BiFunction<Object,​C,​C>
    Direct Known Subclasses:
    SetAddFunction

    public class CollectionAddFunction<V,​C extends Collection<V>>
    extends CollectionFunction<V,​C>
    Function that adds an item to a collection.
    Author:
    Paul Ferraro
    • Method Detail

      • accept

        public void accept​(C collection,
                           V value)