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.getByCodeIgnoreCase(String code)
Get a
LocaleCode instance that corresponds to the given code. |
static LocaleCode |
LocaleCode.getByCodeIgnoreCase(String language,
String country)
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.getByCountryIgnoreCase(String country)
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. |
static List<LocaleCode> |
LocaleCode.getByLanguageIgnoreCase(String language)
Get a list of
LocaleCode instances whose language matches the given one. |
Copyright © 2021. All rights reserved.