Method Summary |
|
public boolean | add(Object obj) Adds an object to the collection, throwing UnsupportedOperationException
unless a CollectionMutator strategy is specified. |
public boolean | addAll(Collection coll) Adds a collection of elements to this collection, throwing
UnsupportedOperationException unless a CollectionMutator strategy is
specified. |
public void | addComposited(Collection[] comps) |
public void | addComposited(Collection c) Add an additional collection to this composite. |
public void | addComposited(Collection c, Collection d) Add two additional collections to this composite. |
public void | clear() Removes all of the elements from this collection . |
public boolean | contains(Object obj) Checks whether this composite collection contains the object. |
public boolean | containsAll(Collection coll) Checks whether this composite contains all the elements in the specified
collection. |
public Collection | getCollections() Gets the collections being decorated. |
public boolean | isEmpty() Checks whether this composite collection is empty. |
public Iterator | iterator() Gets an iterator over all the collections in this composite.
This implementation uses an IteratorChain .
an IteratorChain instance which supportsremove() . |
public boolean | remove(Object obj) Removes an object from the collection, throwing
UnsupportedOperationException unless a CollectionMutator strategy is
specified. |
public boolean | removeAll(Collection coll) Removes the elements in the specified collection from this composite
collection. |
public void | removeComposited(Collection coll) Removes a collection from the those being decorated in this composite. |
public boolean | retainAll(Collection coll) Retains all the elements in the specified collection in this composite
collection, removing all others. |
public void | setMutator(CollectionMutator mutator) Specify a CollectionMutator strategy instance to handle changes. |
public int | size() Gets the size of this composite collection. |
public Object[] | toArray() Returns an array containing all of the elements in this composite. |
public Object[] | toArray(Object[] array) Returns an object array, populating the supplied array if possible. |
public Collection | toCollection() |