| 程序包 | 说明 |
|---|---|
| com.jn.langx.text.i18n |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static LocaleCode[] |
LocaleCode.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
Copyright © 2021. All rights reserved.