Method Summary |
|
public boolean | add(E object) Adds the specified object to this Set. |
public boolean | addAll(Collection<? extends E> collection) Adds the objects in the specified Collection which do not exist in this
Set. |
public void | clear() Removes all elements from this Set, leaving it empty. |
public boolean | contains(Object object) Searches this Set for the specified object. |
public boolean | containsAll(Collection> collection) Searches this Set for all objects in the specified Collection. |
public boolean | equals(Object object) Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison.
Parameters: object - Object the object to compare with this object. |
public int | hashCode() Answers an integer hash code for the receiver. |
public boolean | isEmpty() Answers if this Set has no elements, a size of zero. |
public Iterator<E> | iterator() Answers an Iterator on the elements of this Set. |
public boolean | remove(Object object) Removes any occurrence of the specified object from this Set. |
public boolean | removeAll(Collection> collection) Removes all objects in the specified Collection from this Set. |
public boolean | retainAll(Collection> collection) Removes all objects from this Set that are not contained in the specified
Collection. |
public int | size() Answers the number of elements in this Set. |
public Object[] | toArray() Answers an array containing all elements contained in this Set. |
public T[] | toArray(T[] array) Answers an array containing all elements contained in this Set. |