public class CategoryBag
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CategoryBag()
Deprecated.
Constructs a new, empty CategoryBag.
|
CategoryBag(int initialSize)
Deprecated.
Constructs a new, empty CategoryBag, with the initial capacity specified.
|
Modifier and Type | Method and Description |
---|---|
void |
add(KeyedReference category)
Deprecated.
Adds a
KeyedReference to the CategoryBag. |
KeyedReference |
get(int index)
Deprecated.
Returns the
KeyedReference at the specified index. |
int |
size()
Deprecated.
Returns the number of
KeyedReference objects in the CategoryBag. |
public CategoryBag()
public CategoryBag(int initialSize)
initialSize
- the initial capacity of the CategoryBag.public void add(KeyedReference category)
KeyedReference
to the CategoryBag.category
- the KeyedReference to be added.public KeyedReference get(int index)
KeyedReference
at the specified index.index
- the index of the KeyedReference to be retrieved.public int size()
KeyedReference
objects in the CategoryBag.