com.ibm.icu.util.ULocale .
| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static class | LocaleDisplayNames.LastResortLocaleDisplayNames
Minimum implementation of LocaleDisplayNames |
| public static class | LocaleDisplayNames.UiListItem
Struct-like class used to return information for constructing a UI list, each corresponding to a locale. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Method | |
| private static final Method |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract DisplayContext | Returns: the current DisplayContext setting for the specified typethe DisplayContext.Type whose value to return typeReturns the current value for a specified DisplayContext.Type. |
| public abstract LocaleDisplayNames. | Returns: the dialect handling enumReturns the dialect handling used in the display names. |
| public static LocaleDisplayNames | Returns: a LocaleDisplayNames instancethe display locale locale)Convenience overload of |
| public static LocaleDisplayNames | Returns: a LocaleDisplayNames instancethe display locale)java.Convenience overload of |
| public static LocaleDisplayNames | Returns: a LocaleDisplayNames instancethe display locale locale, LocaleDisplayNames.how to select names for locales dialectHandlingReturns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling. |
| public static LocaleDisplayNames | Returns: a LocaleDisplayNames instancethe display locale locale, DisplayContext... one or more context settings (e.g. for dialect
handling, capitalization, etc. contexts)Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settings |
| public static LocaleDisplayNames | Returns: a LocaleDisplayNames instancethe display locale, DisplayContext... java.one or more context settings (e.g. for dialect
handling, capitalization, etc. contexts)Returns an instance of LocaleDisplayNames that returns names formatted for the provided
|
| public abstract ULocale | |
| public List | Returns: an ordered list of UiListItems.a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. localeSet, boolean if true, compares the nameInSelf, otherwise the nameInDisplayLocale.
Set depending on which field (displayLocale vs self) is to show up in the UI.
If both are to show up in the UI, then it should be the one used for the primary sort order. inSelf, Comparator<Object> how to collate—should normally be Collator.getInstance(getDisplayLocale()) collator)Return a list of information used to construct a UI list of locale names. |
| public abstract List | Returns: an ordered list of UiListItems.a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance. localeSet, Comparator<LocaleDisplayNames.how to sort the UiListItems in the result. comparatorReturn a list of information used to construct a UI list of locale names, providing more access to control the sorting. |
| public abstract String | Returns: the display name of the provided locale keythe locale key name key)Returns the display name of the provided locale key. |
| public abstract String | Returns: the display name of the provided valuethe locale key name key, String the locale key's value value)Returns the display name of the provided value (used with the provided key). |
| public abstract String | Returns: the display name of the provided language codethe language code lang)Returns the display name of the provided language code. |
| public abstract String | Returns: the display name of the provided localethe locale whose display name to return locale)Returns the display name of the provided ulocale. |
| public abstract String | Returns: the display name of the provided localethe locale whose display name to return locale)Returns the display name of the provided locale. |
| public abstract String | Returns: the display name of the provided localethe id of the locale whose display name to return localeId)Returns the display name of the provided locale id. When no display names are available for all or portions of the original locale ID, those portions may be used directly (possibly in a more canonical form) as part of the returned display name. |
| public abstract String | Returns: the display name of the provided region codethe region code region)Returns the display name of the provided region code. |
| public abstract String | Returns: the display name of the provided script codethe script code script)Returns the display name of the provided script code. |
| public abstract String | Returns: the display name of the provided script codethe script code number scriptCode)Returns the display name of the provided script code. |
| public String | Returns: the display name of the provided script codethe script code script)
Deprecated
This API is ICU internal only.
Returns the display name of the provided script code
when used in the context of a full locale name.
|
| public abstract String | Returns: the display name of the provided variantthe variant string variant)Returns the display name of the provided variant. |