|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface CompositeCollection.CollectionMutator<E>
Pluggable strategy to handle changes to the composite.
Method Summary | |
---|---|
boolean |
add(CompositeCollection<? extends E> composite,
Collection<? extends E>[] collections,
Object obj)
Called when an object is to be added to the composite. |
boolean |
addAll(CompositeCollection<? extends E> composite,
Collection<? extends E>[] collections,
Collection<? extends E> coll)
Called when a collection is to be added to the composite. |
boolean |
remove(CompositeCollection<? extends E> composite,
Collection<? extends E>[] collections,
Object obj)
Called when an object is to be removed to the composite. |
Method Detail |
---|
boolean add(CompositeCollection<? extends E> composite, Collection<? extends E>[] 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<? extends E> composite, Collection<? extends E>[] collections, Collection<? extends E> 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<? extends E> composite, Collection<? extends E>[] 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 |