org.apache.commons.collections.collection
Interface CompositeCollection.CollectionMutator
- CompositeSet.SetMutator
public static interface CompositeCollection.CollectionMutator
Pluggable strategy to handle changes to the composite.
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.
|
add
public boolean add(CompositeCollection composite,
Collection[] collections,
Object obj) Called when an object is to be added to the composite.
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectionobj - the object being added
- true if the collection is changed
addAll
public boolean addAll(CompositeCollection composite,
Collection[] collections,
Collection coll) Called when a collection is to be added to the composite.
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectioncoll - the collection being added
- true if the collection is changed
remove
public boolean remove(CompositeCollection composite,
Collection[] collections,
Object obj) Called when an object is to be removed to the composite.
composite - the CompositeCollection being changedcollections - all of the Collection instances in this CompositeCollectionobj - the object being removed
- true if the collection is changed
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.