|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CompositeSet.SetMutator<E>
Define callbacks for mutation operations.
| Method Summary | |
|---|---|
boolean |
add(CompositeSet<E> composite,
List<Set<E>> sets,
E obj)
Called when an object is to be added to the composite. |
boolean |
addAll(CompositeSet<E> composite,
List<Set<E>> sets,
Collection<? extends E> coll)
Called when a collection is to be added to the composite. |
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. |
| Method Detail |
|---|
boolean add(CompositeSet<E> composite,
List<Set<E>> sets,
E obj)
composite - the CompositeSet being changedsets - all of the Set instances in this CompositeSetobj - the object being added
UnsupportedOperationException - if add is unsupported
ClassCastException - if the object cannot be added due to its type
NullPointerException - if the object cannot be added because its null
IllegalArgumentException - if the object cannot be added
boolean addAll(CompositeSet<E> composite,
List<Set<E>> sets,
Collection<? extends E> coll)
composite - the CompositeSet being changedsets - all of the Set instances in this CompositeSetcoll - the collection being added
UnsupportedOperationException - if add is unsupported
ClassCastException - if the object cannot be added due to its type
NullPointerException - if the object cannot be added because its null
IllegalArgumentException - if the object cannot be added
void 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 sets
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||