⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.set

Interface CompositeSet.SetMutator

Enclosing Class:

All Superinterfaces:
CompositeCollection.CollectionMutator


public static interface CompositeSet.SetMutator
implements CompositeCollection.CollectionMutator

Define callbacks for mutation operations.

Defining remove() on implementations of SetMutator is pointless as they are never called by CompositeSet.

Method Summary

void

resolveCollision(CompositeSet comp, Set existing, Set added, Collection intersects)

Called when a Set is added to the CompositeSet and there is a collision between existing and added sets.

Method Details

resolveCollision

public void resolveCollision(CompositeSet comp, Set existing, Set added, Collection 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 modified
existing - The Set already existing in the composite
added - the Set being added to the composite
intersects - the intersection of th existing and added sets