public class Categories extends Object implements Serializable
Constructor and Description |
---|
Categories() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(Category vCategory) |
void |
addCategory(int index,
Category vCategory) |
Enumeration<Category> |
enumerateCategory()
Method enumerateCategory.
|
Category[] |
getCategory()
Method getCategory.Returns the contents of the collection in an Array.
|
Category |
getCategory(int index)
Method getCategory.
|
List<Category> |
getCategoryCollection()
Method getCategoryCollection.Returns a reference to 'categoryList'.
|
int |
getCategoryCount()
Method getCategoryCount.
|
Iterator<Category> |
iterateCategory()
Method iterateCategory.
|
void |
removeAllCategory() |
boolean |
removeCategory(Category vCategory)
Method removeCategory.
|
Category |
removeCategoryAt(int index)
Method removeCategoryAt.
|
void |
setCategory(Category[] vCategoryArray) |
void |
setCategory(int index,
Category vCategory) |
void |
setCategory(List<Category> vCategoryList)
Sets the value of 'categoryList' by copying the given Vector.
|
void |
setCategoryCollection(List<Category> categoryList)
Deprecated.
|
public void addCategory(Category vCategory) throws IndexOutOfBoundsException
vCategory
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void addCategory(int index, Category vCategory) throws IndexOutOfBoundsException
index
- vCategory
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Enumeration<Category> enumerateCategory()
public Category getCategory(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Category[] getCategory()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Category> getCategoryCollection()
public int getCategoryCount()
public Iterator<Category> iterateCategory()
public void removeAllCategory()
public boolean removeCategory(Category vCategory)
vCategory
- public Category removeCategoryAt(int index)
index
- public void setCategory(int index, Category vCategory) throws IndexOutOfBoundsException
index
- vCategory
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void setCategory(Category[] vCategoryArray)
vCategoryArray
- public void setCategory(List<Category> vCategoryList)
vCategoryList
- the Vector to copy.Copyright © 2018. All rights reserved.