Method Summary |
|
public boolean | add(E object) Attempts to add object to the contents of this
Collection . |
public boolean | addAll(Collection<? extends E> collection) Attempts to add all of the objects contained in collection
to the contents of this collection. |
public void | clear() Removes all elements from this Collection, leaving it empty. |
public boolean | contains(Object object) Searches this Collection for the specified object. |
public boolean | containsAll(Collection> collection) Searches this Collection 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 Collection has no elements, a size of zero. |
public Iterator<E> | iterator() Returns an instance of
Iterator that may be used to access the
objects contained by this collection. |
public boolean | remove(Object object) Removes the first occurrence of the specified object from this
Collection. |
public boolean | removeAll(Collection> collection) Removes all occurrences in this Collection of each object in the
specified Collection. |
public boolean | retainAll(Collection> collection) Removes all objects from this Collection that are not also found in the
contents of collection . |
public int | size() Returns a count of how many objects are contained by this collection. |
public Object[] | toArray() Answers a new array containing all elements contained in this Collection. |
public T[] | toArray(T[] array) Answers an array containing all elements contained in this Collection. |