public static interface CompositeCollection.CollectionMutator
Modifier and Type | Method and Description |
---|---|
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.
|
boolean add(CompositeCollection composite, Collection[] collections, Object 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 composite, Collection[] collections, Collection 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 composite, Collection[] 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–2015 The Apache Software Foundation. All rights reserved.