E
- the element being held in the collectionpublic static interface CompositeCollection.CollectionMutator<E> extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
add(CompositeCollection<E> composite,
List<Collection<E>> collections,
E obj)
Called when an object is to be added to the composite.
|
boolean |
addAll(CompositeCollection<E> composite,
List<Collection<E>> collections,
Collection<? extends E> coll)
Called when a collection is to be added to the composite.
|
boolean |
remove(CompositeCollection<E> composite,
List<Collection<E>> collections,
Object obj)
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 changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being addedUnsupportedOperationException
- if add is unsupportedClassCastException
- if the object cannot be added due to its typeNullPointerException
- if the object cannot be added because its nullIllegalArgumentException
- if the object cannot be addedboolean addAll(CompositeCollection<E> composite, List<Collection<E>> collections, Collection<? extends E> coll)
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectioncoll
- the collection being addedUnsupportedOperationException
- if add is unsupportedClassCastException
- if the object cannot be added due to its typeNullPointerException
- if the object cannot be added because its nullIllegalArgumentException
- if the object cannot be addedboolean remove(CompositeCollection<E> composite, List<Collection<E>> collections, Object obj)
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being removedUnsupportedOperationException
- if removed is unsupportedClassCastException
- if the object cannot be removed due to its typeNullPointerException
- if the object cannot be removed because its nullIllegalArgumentException
- if the object cannot be removedCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.