Bag
, using a HashMap
to provide the data storage. This is the standard implementation of a bag. A Bag
stores each object in the collection together with a count of occurrences. Extra methods on the interface allow multiple copies of an object to be added or removed at once. It is important to read the interface javadoc carefully as several methods violate the Collection
interface specification.
@since Commons Collections 3.0 (previously in main package v2.0)
@version $Revision: 1.8 $ $Date: 2004/02/18 00:56:25 $
@author Chuck Burdick
@author Stephen Colebourne
Bag
, using a HashMap
to provide the data storage. This is the standard implementation of a bag. A Bag
stores each object in the collection together with a count of occurrences. Extra methods on the interface allow multiple copies of an object to be added or removed at once. It is important to read the interface javadoc carefully as several methods violate the Collection
interface specification.
@author Chuck Burdick
@author Matt Hall, John Watkinson, Stephen Colebourne
@version $Revision: 1.1 $ $Date: 2005/10/11 17:05:19 $
@since Commons Collections 3.0 (previously in main package v2.0)
A {@link Bag} stores each object in the collection together with acount of occurrences. Extra methods on the interface allow multiple copies of an object to be added or removed at once. It is important to read the interface javadoc carefully as several methods violate the {@link Collection} interface specification. @since 3.0 (previously in main package v2.0) @version $Id: HashBag.java 1477752 2013-04-30 18:21:52Z tn $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|