Interface ResizableDistinctAssortment<T>

Type Parameters:
T - type of the elements in the ResizableDistinctAssortment
All Superinterfaces:
Assortment<T>, Countable, DistinctAssortment<T>, Enumerable<T>, Iterable<T>

public interface ResizableDistinctAssortment<T> extends DistinctAssortment<T>
Defines the contract for resizable DistinctAssortment
  • Method Details

    • add

      boolean add(T e)
      Performs add.
      Parameters:
      e - the e value
      Returns:
      the result of add
    • remove

      boolean remove(Object o)
      Performs remove.
      Parameters:
      o - the o value
      Returns:
      the result of remove
    • addAll

      boolean addAll(Iterable<? extends T> c)
      Performs add All.
      Parameters:
      c - the c value
      Returns:
      the result of addAll
    • removeAll

      boolean removeAll(Iterable<? extends T> c)
      Performs remove All.
      Parameters:
      c - the c value
      Returns:
      the result of removeAll
    • retainAll

      boolean retainAll(Iterable<? extends T> c)
      Performs retainAll.
      Parameters:
      c - the c value
      Returns:
      the result of retainAll
    • clear

      void clear()
      Performs clear.
    • removeIf

      boolean removeIf(Predicate<? super T> filter)
      Performs remove If.
      Parameters:
      filter - the filter value
      Returns:
      the result of removeIf
    • toCollection

      Set<T> toCollection()
      Returns to Collection.
      Specified by:
      toCollection in interface Assortment<T>
      Specified by:
      toCollection in interface DistinctAssortment<T>
      Returns:
      the result of toCollection