E
- the element being held in the collectionpublic static interface CompositeCollection.CollectionMutator<E>
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
add(CompositeCollection<E> composite,
java.util.List<java.util.Collection<E>> collections,
E obj)
Called when an object is to be added to the composite.
|
boolean |
addAll(CompositeCollection<E> composite,
java.util.List<java.util.Collection<E>> collections,
java.util.Collection<? extends E> coll)
Called when a collection is to be added to the composite.
|
boolean |
remove(CompositeCollection<E> composite,
java.util.List<java.util.Collection<E>> collections,
java.lang.Object obj)
Called when an object is to be removed to the composite.
|
boolean add(CompositeCollection<E> composite, java.util.List<java.util.Collection<E>> collections, E obj)
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being addedjava.lang.UnsupportedOperationException
- if add is unsupportedjava.lang.ClassCastException
- if the object cannot be added due to its typejava.lang.NullPointerException
- if the object cannot be added because its nulljava.lang.IllegalArgumentException
- if the object cannot be addedboolean addAll(CompositeCollection<E> composite, java.util.List<java.util.Collection<E>> collections, java.util.Collection<? extends E> coll)
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectioncoll
- the collection being addedjava.lang.UnsupportedOperationException
- if add is unsupportedjava.lang.ClassCastException
- if the object cannot be added due to its typejava.lang.NullPointerException
- if the object cannot be added because its nulljava.lang.IllegalArgumentException
- if the object cannot be addedboolean remove(CompositeCollection<E> composite, java.util.List<java.util.Collection<E>> collections, java.lang.Object obj)
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being removedjava.lang.UnsupportedOperationException
- if removed is unsupportedjava.lang.ClassCastException
- if the object cannot be removed due to its typejava.lang.NullPointerException
- if the object cannot be removed because its nulljava.lang.IllegalArgumentException
- if the object cannot be removed"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"