Order will be maintained among the bag members and can be viewed through the iterator.
A {@link org.apache.commons.collections4.Bag Bag} stores each object in the collectiontogether 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 {@link Collection} interface specification. @since 3.0 (previously in main package v2.0) @version $Id: TreeBag.java 1477752 2013-04-30 18:21:52Z tn $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|