java.lang.Object | ||
↳ | org.apache.commons.collections.DefaultMapBag | |
↳ | org.apache.commons.collections.TreeBag |
This class is deprecated.
Moved to bag subpackage and rewritten internally. Due to be removed in v4.0.
A Bag
that is backed by a TreeMap.
Order will be maintained among the unique representative
members.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an empty
TreeBag . | |||||||||||
Constructs an empty
Bag that maintains order on its unique
representative members according to the given Comparator . | |||||||||||
Constructs a
Bag containing all the members of the given
collection. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the comparator associated with this sorted set, or null
if it uses its elements' natural ordering.
| |||||||||||
Returns the first (lowest) member.
| |||||||||||
Returns the last (highest) member.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.DefaultMapBag
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
From interface
java.util.Collection
| |||||||||||
From interface
org.apache.commons.collections.Bag
| |||||||||||
From interface
org.apache.commons.collections.SortedBag
|
Constructs an empty TreeBag
.
Constructs an empty Bag
that maintains order on its unique
representative members according to the given Comparator
.
comparator | the comparator to use |
---|
Constructs a Bag
containing all the members of the given
collection.
coll | the collection to copy into the bag |
---|
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
Returns the first (lowest) member.