public enum Locale extends Enum<Locale> implements Tag<Locale>
Enum Constant and Description |
---|
AFRICA |
ALASKA |
AMERICA |
AUSTRALIA |
BRAZIL |
CANADA |
EAST_AFRICA |
ENGLAND |
HAWAII |
HONG_KONG |
INDIA |
IRELAND |
MIDLAND_US |
MIDWESTERN_US |
NEW_ZEALAND |
NORTHERN_ENGLAND |
NORTHERN_IRELAND |
PHILIPPINES |
PORTUGAL |
SCOTLAND |
SINGAPORE |
SOUTH_AFRICA |
SOUTHERN_ENGLAND |
UK |
US |
WALES |
WESTERN_US |
Modifier and Type | Method and Description |
---|---|
Locale |
coarseGrained()
Returns a coarse grained Locale
|
Locale |
getValue()
Returns the tag 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 AFRICA
public static final Locale ALASKA
public static final Locale AMERICA
public static final Locale AUSTRALIA
public static final Locale CANADA
public static final Locale EAST_AFRICA
public static final Locale ENGLAND
public static final Locale HAWAII
public static final Locale HONG_KONG
public static final Locale INDIA
public static final Locale IRELAND
public static final Locale MIDLAND_US
public static final Locale MIDWESTERN_US
public static final Locale NEW_ZEALAND
public static final Locale NORTHERN_ENGLAND
public static final Locale NORTHERN_IRELAND
public static final Locale PHILIPPINES
public static final Locale SCOTLAND
public static final Locale SINGAPORE
public static final Locale SOUTH_AFRICA
public static final Locale SOUTHERN_ENGLAND
public static final Locale UK
public static final Locale US
public static final Locale WALES
public static final Locale WESTERN_US
public static final Locale BRAZIL
public static final Locale PORTUGAL
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 Locale coarseGrained()
Copyright © 2016–2021. All rights reserved.