Method Summary |
|
public boolean | add(int id) Adds the specified element to this set if it is not already present.
Parameters: id - element to be added to this set. |
public boolean | addAll(IntCollection c) |
public void | clear() Removes all of the elements from this set. |
public boolean | contains(int id) Returns true if this set contains the specified element.
Parameters: id - element whose presence in this set is to be tested. |
public boolean | containsAll(IntCollection c) |
public boolean | isEmpty() Returns true if this set contains no elements. |
public IntIterator | iterator() |
public IntListIterator | listIterator() |
public boolean | remove(int id) Removes the specified element from this set if it is present.
Parameters: id - object to be removed from this set, if present. |
public boolean | removeAll(IntCollection c) |
public boolean | removeElement(int element) |
public boolean | retainAll(IntCollection c) |
public int | size() Returns the number of elements in this set (its cardinality). |
public int[] | toArray() |
public int[] | toArray(int[] a) |