Modifier and Type | Method and Description |
---|---|
LanguageCode |
LanguageAlpha3Code.getAlpha2()
Get ISO 639-1
language code.
|
static LanguageCode |
LanguageCode.getByCode(String code)
|
static LanguageCode |
LanguageCode.getByCode(String code,
boolean caseSensitive)
|
static LanguageCode |
LanguageCode.getByCodeIgnoreCase(String code)
|
static LanguageCode |
LanguageCode.getByLocale(Locale locale)
Get a
LanguageCode that corresponds to the language code of
the given Locale instance. |
LanguageCode |
LocaleCode.getLanguage()
Get the language code.
|
static LanguageCode |
LanguageCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageCode[] |
LanguageCode.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<LanguageCode> |
LanguageCode.findByName(Pattern pattern)
Get a list of
LanguageCode by a name pattern. |
static List<LanguageCode> |
LanguageCode.findByName(String regex)
Get a list of
LanguageCode by a name regular expression. |
Modifier and Type | Method and Description |
---|---|
static List<LocaleCode> |
LocaleCode.getByLanguage(LanguageCode language)
Get a list of
LocaleCode instances whose language matches the given one. |
Copyright © 2021. All rights reserved.