Example usage for Java org.apache.commons.collections.bag HashBag fields, constructors, methods, implement or subclass
The text is from its open source code.
HashBag(Collection coll) Constructs a bag containing all the members of the given collection. | |
HashBag() Constructs an empty HashBag . |
boolean | add(Object object, int nCopies) Adds a new element to the bag, incrementing its count in the map. |
Class> | getClass() Returns the runtime class of this Object . |
int | getCount(Object object) Returns the number of occurrence of the given element in this bag by looking up its count in the underlying map. |