Method Summary |
|
public boolean | add(E e) Adds the specified element to this set if it is not already present. |
void | addAll() |
public boolean | addAll(Collection<? extends E> c) Adds all of the elements in the specified collection to this set. |
void | addRange(E from, E to) |
public void | clear() Removes all of the elements from this set. |
public EnumSet<E> | clone() |
void | complement() |
public boolean | contains(Object e) Returns true if this set contains the specified element. |
public boolean | containsAll(Collection> c) Returns true if this set contains all of the elements
in the specified collection. |
public boolean | equals(Object o) Compares the specified object with this set for equality. |
public boolean | isEmpty() Returns true if this set contains no elements. |
public Iterator<E> | iterator() Returns an iterator over the elements contained in this set. |
public boolean | remove(Object e) Removes the specified element from this set if it is present. |
public boolean | removeAll(Collection> c) Removes from this set all of its elements that are contained in
the specified collection. |
public boolean | retainAll(Collection> c) Retains only the elements in this set that are contained in the
specified collection. |
public int | size() Returns the number of elements in this set. |