public enum Locale extends Enum<Locale> implements Constant
Enum Constant and Description |
---|
__UNKNOWN_CONSTANT__ |
LC_ADDRESS |
LC_ALL |
LC_COLLATE |
LC_CTYPE |
LC_IDENTIFICATION |
LC_MEASUREMENT |
LC_MESSAGES |
LC_MONETARY |
LC_NAME |
LC_NUMERIC |
LC_PAPER |
LC_TELEPHONE |
LC_TIME |
Modifier and Type | Method and Description |
---|---|
boolean |
defined() |
String |
description() |
int |
intValue() |
long |
longValue() |
String |
toString() |
static Locale |
valueOf(long value) |
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 Locale LC_PAPER
public static final Locale LC_NAME
public static final Locale LC_ADDRESS
public static final Locale LC_TELEPHONE
public static final Locale LC_MEASUREMENT
public static final Locale LC_IDENTIFICATION
public static final Locale __UNKNOWN_CONSTANT__
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 nullpublic final String description()
public static Locale valueOf(long value)
Copyright © 2017. All Rights Reserved.