Modifier and Type | Method | Description |
---|---|---|
static Locale |
fromAPIName(java.lang.String apiName) |
From API name.
|
java.lang.String |
getAPIName() |
Gets the API name.
|
static Locale |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Locale[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Locale US
public static final Locale GLOBAL
public static Locale[] values()
for (Locale c : Locale.values()) System.out.println(c);
public static Locale valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getAPIName()
public static Locale fromAPIName(java.lang.String apiName)
apiName
- the api name