Interface CompositeSet.SetMutator
- All Superinterfaces:
CompositeCollection.CollectionMutator
- Enclosing class:
CompositeSet
@Deprecated(since="2021-04-30")
public static interface CompositeSet.SetMutator
extends CompositeCollection.CollectionMutator
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
Define callbacks for mutation operations.
Defining remove() on implementations of SetMutator is pointless as they are never called by CompositeSet.
-
Method Summary
Modifier and TypeMethodDescriptionvoidresolveCollision(CompositeSet comp, Set existing, Set added, Collection intersects) Deprecated.Called when a Set is added to the CompositeSet and there is a collision between existing and added sets.Methods inherited from interface org.apache.commons.collections.collection.CompositeCollection.CollectionMutator
add, addAll, remove
-
Method Details
-
resolveCollision
Deprecated.Called when a Set is added to the CompositeSet and there is a collision between existing and added sets.
If
addedandexistingstill have any intersects after this method returns an IllegalArgumentException will be thrown.- Parameters:
comp- The CompositeSet being modifiedexisting- The Set already existing in the compositeadded- the Set being added to the compositeintersects- the intersection of th existing and added sets
-