Interface CompositeCollection.CollectionMutator
-
- All Known Subinterfaces:
CompositeSet.SetMutator
- Enclosing class:
- CompositeCollection
@Deprecated(since="2021-04-30") public static interface CompositeCollection.CollectionMutator
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Pluggable strategy to handle changes to the composite.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
add(CompositeCollection composite, java.util.Collection[] collections, java.lang.Object obj)
Deprecated.Called when an object is to be added to the composite.boolean
addAll(CompositeCollection composite, java.util.Collection[] collections, java.util.Collection coll)
Deprecated.Called when a collection is to be added to the composite.boolean
remove(CompositeCollection composite, java.util.Collection[] collections, java.lang.Object obj)
Deprecated.Called when an object is to be removed to the composite.
-
-
-
Method Detail
-
add
boolean add(CompositeCollection composite, java.util.Collection[] collections, java.lang.Object obj)
Deprecated.Called when an object is to be added to the composite.- Parameters:
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being added- Returns:
- true if the collection is changed
- Throws:
java.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 added
-
addAll
boolean addAll(CompositeCollection composite, java.util.Collection[] collections, java.util.Collection coll)
Deprecated.Called when a collection is to be added to the composite.- Parameters:
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectioncoll
- the collection being added- Returns:
- true if the collection is changed
- Throws:
java.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 added
-
remove
boolean remove(CompositeCollection composite, java.util.Collection[] collections, java.lang.Object obj)
Deprecated.Called when an object is to be removed to the composite.- Parameters:
composite
- the CompositeCollection being changedcollections
- all of the Collection instances in this CompositeCollectionobj
- the object being removed- Returns:
- true if the collection is changed
- Throws:
java.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
-
-