| |
|
| java.lang.Object org.apache.commons.collections.collection.CompositeCollection org.apache.commons.collections.set.CompositeSet
CompositeSet | public class CompositeSet extends CompositeCollection implements Set(Code) | | Decorates a set of other sets to provide a single unified view.
Changes made to this set will actually be made on the decorated set.
Add operations require the use of a pluggable strategy.
If no strategy is provided then add is unsupported.
since: Commons Collections 3.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Brian McCallister |
CompositeSet | public CompositeSet()(Code) | | Create an empty CompositeSet
|
CompositeSet | public CompositeSet(Set set)(Code) | | Create a CompositeSet with just set composited
Parameters: set - The initial set in the composite |
CompositeSet | public CompositeSet(Set[] sets)(Code) | | Create a composite set with sets as the initial set of composited Sets
|
addComposited | public synchronized void addComposited(Collection c)(Code) | | Add a Set to this composite
Parameters: c - Must implement Set throws: IllegalArgumentException - if c does not implement java.util.Setor if a SetMutator is set, but fails to resolve a collision throws: UnsupportedOperationException - if there is no SetMutator set, ora CollectionMutator is set instead of a SetMutator See Also: org.apache.commons.collections.collection.CompositeCollection.CollectionMutator See Also: SetMutator |
addComposited | public synchronized void addComposited(Collection[] comps)(Code) | | Add an array of sets to this composite
Parameters: comps - throws: IllegalArgumentException - if any of the collections in comps do not implement Set |
remove | public boolean remove(Object obj)(Code) | | If a CollectionMutator is defined for this CompositeSet then this
method will be called anyway.
Parameters: obj - Object to be removed true if the object is removed, false otherwise |
setMutator | public void setMutator(CollectionMutator mutator)(Code) | | This can receive either a CompositeCollection.CollectionMutator
or a CompositeSet.SetMutator . If a
CompositeCollection.CollectionMutator is used than conflicts when adding
composited sets will throw IllegalArgumentException
|
|
|
|