org.apache.commons.collections.set
Interface CompositeSet.SetMutator<E>
- All Superinterfaces:
- CompositeCollection.CollectionMutator<E>
- Enclosing class:
- CompositeSet<E>
public static interface CompositeSet.SetMutator<E>
- extends CompositeCollection.CollectionMutator<E>
Define callbacks for mutation operations.
Defining remove() on implementations of SetMutator is pointless
as they are never called by CompositeSet.
resolveCollision
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.
If
added
and existing
still 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
Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.