|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CompositeCollection.CollectionMutator
Pluggable strategy to handle changes to the composite.
| Method Summary | |
|---|---|
boolean |
add(CompositeCollection composite,
java.util.Collection[] collections,
java.lang.Object obj)
Called when an object is to be added to the composite. |
boolean |
addAll(CompositeCollection composite,
java.util.Collection[] collections,
java.util.Collection coll)
Called when a collection is to be added to the composite. |
boolean |
remove(CompositeCollection composite,
java.util.Collection[] collections,
java.lang.Object obj)
Called when an object is to be removed to the composite. |
| Method Detail |
|---|
boolean add(CompositeCollection composite,
java.util.Collection[] collections,
java.lang.Object obj)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectionobj - the object being added
java.lang.UnsupportedOperationException - if add is unsupported
java.lang.ClassCastException - if the object cannot be added due to its type
java.lang.NullPointerException - if the object cannot be added because its null
java.lang.IllegalArgumentException - if the object cannot be added
boolean addAll(CompositeCollection composite,
java.util.Collection[] collections,
java.util.Collection coll)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectioncoll - the collection being added
java.lang.UnsupportedOperationException - if add is unsupported
java.lang.ClassCastException - if the object cannot be added due to its type
java.lang.NullPointerException - if the object cannot be added because its null
java.lang.IllegalArgumentException - if the object cannot be added
boolean remove(CompositeCollection composite,
java.util.Collection[] collections,
java.lang.Object obj)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectionobj - the object being removed
java.lang.UnsupportedOperationException - if removed is unsupported
java.lang.ClassCastException - if the object cannot be removed due to its type
java.lang.NullPointerException - if the object cannot be removed because its null
java.lang.IllegalArgumentException - if the object cannot be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||