Method Summary |
|
public boolean | add(Object o) Implement to support modification.
Parameters: o - element whose presence in this collection is to be ensured. |
public boolean | addAll(Collection c) Adds all of the elements in the specified collection to this collection
(optional operation).
Parameters: c - collection whose elements are to be added to this collection. |
public void | clear() Removes all of the elements from this collection (optional operation). |
final public void | close(Iterator close) Clean up after any resources assocaited with this iteartor in a manner similar to JDO collections. |
abstract protected void | closeIterator(Iterator close) Please override to cleanup after your own iterators, and
any used resources. |
public boolean | contains(Object o) Returns true if this collection contains the specified
element.
.
This implementation iterates over the elements in the collection,
checking each element in turn for equality with the specified element.
Parameters: o - object to be checked for containment in this collection. |
public boolean | containsAll(Collection c) Returns true if this collection contains all of the elements
in the specified collection. |
public boolean | isEmpty() |
final public Iterator | iterator() Please implement!
Note: If you return a ResourceIterator, the default implemntation of close( Iterator )
will know what to do. |
abstract protected Iterator | openIterator() Open a resource based Iterator, we will call close( iterator ). |
public void | purge() Close any outstanding resources released by this resources. |
public boolean | remove(Object o) Removes a single instance of the specified element from this
collection, if it is present (optional operation). |
public boolean | removeAll(Collection c) Removes from this collection all of its elements that are contained in
the specified collection (optional operation). |
public boolean | retainAll(Collection c) Retains only the elements in this collection that are contained in the
specified collection (optional operation).
Parameters: c - elements to be retained in this collection. |
abstract public int | size() Returns the number of elements in this collection. |
public Object[] | toArray() Array of all the elements. |
public Object[] | toArray(Object[] a) |
public String | toString() Returns a string representation of this collection. |