org.homeunix.thecave.moss.i18n
Enum Keys
java.lang.Object
java.lang.Enum<Keys>
org.homeunix.thecave.moss.i18n.Keys
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Keys>
public enum Keys
- extends java.lang.Enum<Keys>
I use this list of keys for the Translate class. Using this instead
of string constants gives me more flexibility and less ugly code
that I have to wade through.
- Author:
- wyatt
|
Method Summary |
static Keys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Keys[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
LOCALE_LANGUAGE_CODE
public static final Keys LOCALE_LANGUAGE_CODE
LOCALE_COUNTRY_CODE
public static final Keys LOCALE_COUNTRY_CODE
LOCALE_VARIANT_CODE
public static final Keys LOCALE_VARIANT_CODE
values
public static final Keys[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Keys c : Keys.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Keys valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name