Class CollectionRemoveFunction<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:
    SetRemoveFunction

    public class CollectionRemoveFunction<V,​C extends Collection<V>>
    extends CollectionFunction<V,​C>
    Function that removes an item from a collection.
    Author:
    Paul Ferraro
    • Constructor Detail

      • CollectionRemoveFunction

        public CollectionRemoveFunction​(V value,
                                        UnaryOperator<C> copier,
                                        Supplier<C> factory)
    • Method Detail

      • accept

        public void accept​(C collection,
                           V value)