org.apache.commons.collections
Class TreeBag
- Bag, Collection, Bag, SortedBag
An implementation of
Bag
that is backed by a
TreeMap
. Order will be maintained among the unique representative
members.
TreeBag() - Constructs a new empty
TreeBag .
|
TreeBag(Collection c) - New
Bag containing all the members of the given
collection.
|
TreeBag(Comparator c) - New
Bag that maintains order on its unique
representative members according to the given Comparator .
|
add , add , addAll , calcTotalSize , clear , contains , containsAll , containsAll , equals , getCount , getMap , hashCode , isEmpty , iterator , remove , remove , removeAll , retainAll , retainAll , setMap , size , toArray , toArray , toString , uniqueSet |
TreeBag
public TreeBag()
Constructs a new empty TreeBag
.
TreeBag
public TreeBag(Collection c)
New
Bag
containing all the members of the given
collection.
TreeBag
public TreeBag(Comparator c)
New
Bag
that maintains order on its unique
representative members according to the given
Comparator
.
Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.