Example usage for Java org.apache.commons.collections.bag TreeBag fields, constructors, methods, implement or subclass
The text is from its open source code.
TreeBag(Comparator comparator) Constructs an empty bag that maintains order on its unique representative members according to the given Comparator . | |
TreeBag(Collection coll) Constructs a TreeBag containing all the members of the specified collection. | |
TreeBag() Constructs an empty TreeBag . |
boolean | add(Object object, int nCopies) Adds a new element to the bag, incrementing its count in the map. |