Package org.apache.commons.collections.bag
This package contains implementations of the
Bag and 
SortedBag interfaces.
A bag stores an object and a count of the number of occurences of the object.
The following implementations are provided in the package:
- HashBag - implementation that uses a HashMap to store the data
 - TreeBag - implementation that uses a TreeMap to store the data
 
The following decorators are provided in the package:
- Synchronized - synchronizes method access for multi-threaded environments
 - Unmodifiable - ensures the bag cannot be altered
 - Predicated - ensures that only elements that are valid according to a predicate can be added
 - Typed - ensures that only elements that are of a specific type can be added
 - Transformed - transforms each element added to the bag
 
- 
Class Summary Class Description AbstractBagDecorator Decorates anotherBagto provide additional behaviour.AbstractMapBag Abstract implementation of theBaginterface to simplify the creation of subclass implementations.AbstractSortedBagDecorator Decorates anotherSortedBagto provide additional behaviour.HashBag ImplementsBag, using aHashMapto provide the data storage.PredicatedBag Decorates anotherBagto validate that additions match a specified predicate.PredicatedSortedBag Decorates anotherSortedBagto validate that additions match a specified predicate.SynchronizedBag Decorates anotherBagto synchronize its behaviour for a multi-threaded environment.SynchronizedSortedBag Decorates anotherSortedBagto synchronize its behaviour for a multi-threaded environment.TransformedBag Decorates anotherBagto transform objects that are added.TransformedSortedBag Decorates anotherSortedBagto transform objects that are added.TreeBag ImplementsSortedBag, using aTreeMapto provide the data storage.TypedBag Decorates anotherBagto validate that elements added are of a specific type.TypedSortedBag Decorates anotherSortedBagto validate that elements added are of a specific type.UnmodifiableBag Decorates anotherBagto ensure it can't be altered.UnmodifiableSortedBag Decorates anotherSortedBagto ensure it can't be altered.