public enum Locale extends Enum<Locale> implements Constant
Enum Constant and Description |
---|
LC_ALL |
LC_COLLATE |
LC_CTYPE |
LC_MESSAGES |
LC_MONETARY |
LC_NUMERIC |
LC_TIME |
Modifier and Type | Field and Description |
---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
Modifier and Type | Method and Description |
---|---|
boolean |
defined() |
int |
intValue() |
long |
longValue() |
static Locale |
valueOf(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 LC_CTYPE
public static final Locale LC_NUMERIC
public static final Locale LC_TIME
public static final Locale LC_COLLATE
public static final Locale LC_MONETARY
public static final Locale LC_MESSAGES
public static final Locale LC_ALL
public static final long MIN_VALUE
public static final long MAX_VALUE
public static Locale[] values()
for (Locale c : Locale.values()) System.out.println(c);
public static Locale valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All Rights Reserved.