public static interface CompositeSet.SetMutator<E> extends CompositeCollection.CollectionMutator<E>
Defining remove() on implementations of SetMutator is pointless as they are never called by CompositeSet.
| Modifier and Type | Method and Description |
|---|---|
void |
resolveCollision(CompositeSet<E> comp,
Set<E> existing,
Set<E> added,
Collection<E> intersects)
Called when a Set is added to the CompositeSet and there is a
collision between existing and added sets.
|
add, addAll, removevoid resolveCollision(CompositeSet<E> comp, Set<E> existing, Set<E> added, Collection<E> intersects)
If added and existing still have any intersects
after this method returns an IllegalArgumentException will be thrown.
comp - the CompositeSet being modifiedexisting - the Set already existing in the compositeadded - the Set being added to the compositeintersects - the intersection of the existing and added setsCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.