| Modifier and Type | Field and Description |
|---|---|
protected String |
dataClassName |
protected List<Key<?>> |
indexedKeys |
protected Map<String,Key<?>> |
keys |
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
Category() |
|
Category(String name,
Class<T> dataClass,
Key<?>... keys)
Creates a new Category instance with the specified name.
|
|
Category(String name,
Class<T> dataClass,
List<Key<?>> keys,
List<Key<?>> indexedKeys)
Creates a new Category instance with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Class<T> |
getDataClass() |
List<Key<?>> |
getIndexedKeys() |
Key<?> |
getKey(String name) |
Collection<Key<?>> |
getKeys() |
String |
getName() |
int |
hashCode() |
String |
toString() |
protected Category()
public Category(String name, Class<T> dataClass, Key<?>... keys)
name - the name of the categorydataClass - the Class object representing the datakeys - an array of Key object which represent the data for this categoryIllegalArgumentException - if a Category is created with a name that has been used
beforepublic Category(String name, Class<T> dataClass, List<Key<?>> keys, List<Key<?>> indexedKeys)
name - the name of the categorydataClass - the Class object representing the dataindexedKeys - the keys that will be used for sorting and should be indexed
(or otherwise optimized) by the storagekeys - an array of Key object which represent the data for this categoryIllegalArgumentException - if a Category is created with a name that has been used
beforepublic String getName()
public Collection<Key<?>> getKeys()
Keys for this category or an empty
collection if no keys.public Key<?> getKey(String name)
name - The name of the key to retrieve.null if there was no
such key.Copyright © 2015. All rights reserved.