public class CategoryAppInfo extends Object implements AppInfo
AppInfo
container that contains a list of category names.Modifier and Type | Class and Description |
---|---|
static class |
CategoryAppInfo.Category
A single category.
|
Constructor and Description |
---|
CategoryAppInfo() |
Modifier and Type | Method and Description |
---|---|
int |
findCategoryByKey(int key)
Finds a
CategoryAppInfo.Category index by the category key. |
int |
findCategoryByName(String name)
Finds a
CategoryAppInfo.Category index by the category name. |
List<CategoryAppInfo.Category> |
getCategories()
Gets a list of category names.
|
CategoryAppInfo.Category |
getCategoryByIndex(int index)
Finds a
CategoryAppInfo.Category by its index. |
CategoryAppInfo.Category |
getCategoryByKey(int key)
Finds a
CategoryAppInfo.Category by its key. |
public CategoryAppInfo()
public List<CategoryAppInfo.Category> getCategories()
public CategoryAppInfo.Category getCategoryByIndex(int index)
CategoryAppInfo.Category
by its index.index
- Category indexCategoryAppInfo.Category
or null
public CategoryAppInfo.Category getCategoryByKey(int key)
CategoryAppInfo.Category
by its key.key
- Category keyCategoryAppInfo.Category
or null
public int findCategoryByKey(int key)
CategoryAppInfo.Category
index by the category key.key
- Category keypublic int findCategoryByName(String name)
CategoryAppInfo.Category
index by the category name.name
- Category nameCopyright © 2009–2017. All rights reserved.