|
||||||||||
| 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,
Collection[] collections,
Object obj)
Called when an object is to be added to the composite. |
boolean |
addAll(CompositeCollection composite,
Collection[] collections,
Collection coll)
Called when a collection is to be added to the composite. |
boolean |
remove(CompositeCollection composite,
Collection[] collections,
Object obj)
Called when an object is to be removed to the composite. |
| Method Detail |
|---|
boolean add(CompositeCollection composite, Collection[] collections, Object obj)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this
CompositeCollectionobj - 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 addedboolean addAll(CompositeCollection composite, Collection[] collections, Collection coll)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this
CompositeCollectioncoll - 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 addedboolean remove(CompositeCollection composite, Collection[] collections, Object obj)
composite - the CompositeCollection being changedcollections - all of the Collection instances in this
CompositeCollectionobj - the object being removed
UnsupportedOperationException - if removed is unsupported
ClassCastException - if the object cannot be removed due to its type
NullPointerException - if the object cannot be removed because its null
IllegalArgumentException - if the object cannot be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||