java.lang.Object | +--org.apache.commons.collections.collection.CompositeCollection | +--org.apache.commons.collections.set.CompositeSetAll Implemented Interfaces:
Create an empty CompositeSet |
CompositeSet(Set set) Create a CompositeSet with just set composited |
CompositeSet(Set[] sets) Create a composite set with sets as the initial set of composited Sets |
synchronized void | addComposited(Collection c) Add a Set to this composite |
synchronized void | addComposited(Collection c, Collection d) Add two sets to this composite |
synchronized void | addComposited(Collection[] comps) Add an array of sets to this composite |
boolean | equals(Object obj) |
int | hashCode() |
boolean | remove(Object obj) If a CollectionMutator is defined for this CompositeSet then this method will be called anyway. |
void | setMutator(CompositeCollection.CollectionMutator mutator) This can receive either a CompositeCollection.CollectionMutator or a CompositeSet.SetMutator. |
public CompositeSet()
public CompositeSet(Set set)
set
composited
public CompositeSet(Set[] sets)
public synchronized void addComposited(Collection c, Collection d)
- if c or d does not implement java.util.Setpublic synchronized void addComposited(Collection c)
- if c does not implement java.util.Set
or if a SetMutator is set, but fails to resolve a collision
- if there is no SetMutator set, or
a CollectionMutator is set instead of a SetMutatororg.apache.commons.collections.collection.CompositeCollection.CollectionMutator
SetMutator
public synchronized void addComposited(Collection[] comps)
- if any of the collections in comps do not implement Setpublic boolean equals(Object obj)
Set.equals
public int hashCode()
Set.hashCode
public boolean remove(Object obj)
CollectionMutator
is defined for this CompositeSet then this
method will be called anyway.
public void setMutator(CompositeCollection.CollectionMutator mutator)
CompositeCollection.CollectionMutator
or a CompositeSet.SetMutator
. If a
CompositeCollection.CollectionMutator
is used than conflicts when adding
composited sets will throw IllegalArgumentException