Interface CompositeSet.SetMutator
- 
- All Superinterfaces:
 CompositeCollection.CollectionMutator
- Enclosing class:
 - CompositeSet
 
public static interface CompositeSet.SetMutator extends CompositeCollection.CollectionMutator
Define callbacks for mutation operations.Defining remove() on implementations of SetMutator is pointless as they are never called by CompositeSet.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidresolveCollision(CompositeSet comp, java.util.Set existing, java.util.Set added, java.util.Collection intersects)Called when a Set is added to the CompositeSet and there is a collision between existing and added sets.- 
Methods inherited from interface org.apache.commons.collections.collection.CompositeCollection.CollectionMutator
add, addAll, remove 
 - 
 
 - 
 
- 
- 
Method Detail
- 
resolveCollision
void resolveCollision(CompositeSet comp, java.util.Set existing, java.util.Set added, java.util.Collection intersects)
Called when a Set is added to the CompositeSet and there is a collision between existing and added sets.
If
addedandexistingstill have any intersects after this method returns an IllegalArgumentException will be thrown.- Parameters:
 comp- The CompositeSet being modifiedexisting- The Set already existing in the compositeadded- the Set being added to the compositeintersects- the intersection of th existing and added sets
 
 - 
 
 -