Class SetAddFunction<V>

Type Parameters:
V - the set element type
All Implemented Interfaces:
BiConsumer<Set<V>, Collection<V>>, BiFunction<Object,Set<V>,Set<V>>, Operation<Collection<V>>
Direct Known Subclasses:
AddressSetAddFunction

public class SetAddFunction<V> extends CollectionAddFunction<V,Set<V>>
Function that adds one or more items to a set.
Author:
Paul Ferraro
  • Constructor Details

    • SetAddFunction

      public SetAddFunction(V value)
      Constructs a new function that adds the specified element to a set.
      Parameters:
      value - the value to be added to the set
    • SetAddFunction

      public SetAddFunction(Collection<V> values)
      Constructs a new function that adds the specified elements to a set.
      Parameters:
      values - the values to be added to the set