E - the element being held in the collection
public static interface CompositeCollection.CollectionMutator<E> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(CompositeCollection
Called when an object is to be added to the composite.
|
boolean |
addAll(CompositeCollection
Called when a collection is to be added to the composite.
|
boolean |
remove(CompositeCollection
Called when an object is to be removed to the composite.
|
boolean add(CompositeCollection<E> composite, List <Collection <E>> collections, E obj)
composite - the CompositeCollection being changed
collections - all of the Collection instances in this CompositeCollection
obj - 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(CompositeCollection<E> composite, List <Collection <E>> collections, Collection <? extends E> coll)
composite - the CompositeCollection being changed
collections - all of the Collection instances in this CompositeCollection
coll - 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
boolean remove(CompositeCollection<E> composite, List <Collection <E>> collections, Object obj)
composite - the CompositeCollection being changed
collections - all of the Collection instances in this CompositeCollection
obj - 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