| Modifier and Type | Method and Description |
|---|---|
static LocaleCode |
LocaleCode.getByCode(String code)
Get a LocaleCode instance that corresponds to the given code.
|
static LocaleCode |
LocaleCode.getByCode(String code,
boolean caseSensitive)
Get a LocaleCode instance that corresponds to the given code.
|
static LocaleCode |
LocaleCode.getByCode(String language,
String country)
Get a LocaleCode instance that corresponds to the given pair of
language code and country code.
|
static LocaleCode |
LocaleCode.getByCode(String language,
String country,
boolean caseSensitive)
Get a LocaleCode instance that corresponds to the given pair of
language code and country code.
|
static LocaleCode |
LocaleCode.getByLocale(Locale locale)
Get a LocaleCode instance that corresponds to the given
Locale instance. |
static LocaleCode |
LocaleCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocaleCode[] |
LocaleCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static List<LocaleCode> |
LocaleCode.getByCountry(CountryCode country)
Get a list of
LocaleCode instances whose country matches the given one. |
static List<LocaleCode> |
LocaleCode.getByCountry(String country)
Get a list of
LocaleCode instances whose country matches the given one. |
static List<LocaleCode> |
LocaleCode.getByCountry(String country,
boolean caseSensitive)
Get a list of
LocaleCode instances whose country matches the given one. |
static List<LocaleCode> |
LocaleCode.getByLanguage(LanguageCode language)
Get a list of
LocaleCode instances whose language matches the given one. |
static List<LocaleCode> |
LocaleCode.getByLanguage(String language)
Get a list of
LocaleCode instances whose language matches the given one. |
static List<LocaleCode> |
LocaleCode.getByLanguage(String language,
boolean caseSensitive)
Get a list of
LocaleCode instances whose language matches the given one. |
Copyright © 2013. All rights reserved.