public static interface CompositeSet.SetMutator<E>
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(CompositeSet<E> composite,
java.util.List<java.util.Set<E>> sets,
E obj)
Called when an object is to be added to the composite.
|
boolean |
addAll(CompositeSet<E> composite,
java.util.List<java.util.Set<E>> sets,
java.util.Collection<? extends E> coll)
Called when a collection is to be added to the composite.
|
void |
resolveCollision(CompositeSet<E> comp,
java.util.Set<E> existing,
java.util.Set<E> added,
java.util.Collection<E> intersects)
Called when a Set is added to the CompositeSet and there is a
collision between existing and added sets.
|
boolean add(CompositeSet<E> composite, java.util.List<java.util.Set<E>> sets, E obj)
composite - the CompositeSet being changedsets - all of the Set instances in this CompositeSetobj - the object being addedjava.lang.UnsupportedOperationException - if add is unsupportedjava.lang.ClassCastException - if the object cannot be added due to its typejava.lang.NullPointerException - if the object cannot be added because its nulljava.lang.IllegalArgumentException - if the object cannot be addedboolean addAll(CompositeSet<E> composite, java.util.List<java.util.Set<E>> sets, java.util.Collection<? extends E> coll)
composite - the CompositeSet being changedsets - all of the Set instances in this CompositeSetcoll - the collection being addedjava.lang.UnsupportedOperationException - if add is unsupportedjava.lang.ClassCastException - if the object cannot be added due to its typejava.lang.NullPointerException - if the object cannot be added because its nulljava.lang.IllegalArgumentException - if the object cannot be addedvoid resolveCollision(CompositeSet<E> comp, java.util.Set<E> existing, java.util.Set<E> added, java.util.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 © 2010 - 2023 Adobe. All Rights Reserved