Class MutableSet<T>

All Implemented Interfaces:
Cloneable, Iterable<T>, MutableCollection<T>, Traversable<T>

public abstract class MutableSet<T> extends Set<T> implements MutableCollection<T>
Set that can be mutated.
  • Constructor Details

    • MutableSet

      public MutableSet()
      Constructor for subclasses.
  • Method Details

    • empty

      public static <T> MutableSet<T> empty()
      Returns new mutable set that is initially empty.
    • of

      @SafeVarargs public static <T> MutableSet<T> of(T... elements)
      Returns new mutable set that initially contains given elements.
    • of

      public static <T> MutableSet<T> of(Collection<? extends T> elements)
      Returns new mutable set that initially contains given elements.