T - Type of the valuespublic class StaticEnumerator<T> extends Object implements Enumerator<T>
| Modifier and Type | Field and Description |
|---|---|
private Map<T,I18nizableText> |
_entries |
| Constructor and Description |
|---|
StaticEnumerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(I18nizableText label,
T value)
Adds a new entry.
|
I18nizableText |
getEntry(T value)
Retrieves a single label from a value.
|
Map<T,I18nizableText> |
getTypedEntries()
Provides the enumerated values with their optional label.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationprivate Map<T,I18nizableText> _entries
public StaticEnumerator()
public void add(I18nizableText label, T value)
label - the entry label.value - the entry value.public I18nizableText getEntry(T value)
EnumeratorgetEntry in interface Enumerator<T>value - the value.null if not found.public Map<T,I18nizableText> getTypedEntries()
EnumeratorgetTypedEntries in interface Enumerator<T>