Class LocaleDisplayNames.LastResortLocaleDisplayNames

    • Method Detail

      • localeDisplayName

        public java.lang.String localeDisplayName​(ULocale locale)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided ulocale. 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.
        Specified by:
        localeDisplayName in class LocaleDisplayNames
        Parameters:
        locale - the locale whose display name to return
        Returns:
        the display name of the provided locale
      • localeDisplayName

        public java.lang.String localeDisplayName​(java.util.Locale locale)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided locale. 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.
        Specified by:
        localeDisplayName in class LocaleDisplayNames
        Parameters:
        locale - the locale whose display name to return
        Returns:
        the display name of the provided locale
      • localeDisplayName

        public java.lang.String localeDisplayName​(java.lang.String localeId)
        Description copied from class: LocaleDisplayNames
        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.
        Specified by:
        localeDisplayName in class LocaleDisplayNames
        Parameters:
        localeId - the id of the locale whose display name to return
        Returns:
        the display name of the provided locale
      • languageDisplayName

        public java.lang.String languageDisplayName​(java.lang.String lang)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided language code.
        Specified by:
        languageDisplayName in class LocaleDisplayNames
        Parameters:
        lang - the language code
        Returns:
        the display name of the provided language code
      • scriptDisplayName

        public java.lang.String scriptDisplayName​(java.lang.String script)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided script code.
        Specified by:
        scriptDisplayName in class LocaleDisplayNames
        Parameters:
        script - the script code
        Returns:
        the display name of the provided script code
      • scriptDisplayName

        public java.lang.String scriptDisplayName​(int scriptCode)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided script code. See UScript for recognized script codes.
        Specified by:
        scriptDisplayName in class LocaleDisplayNames
        Parameters:
        scriptCode - the script code number
        Returns:
        the display name of the provided script code
      • regionDisplayName

        public java.lang.String regionDisplayName​(java.lang.String region)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided region code.
        Specified by:
        regionDisplayName in class LocaleDisplayNames
        Parameters:
        region - the region code
        Returns:
        the display name of the provided region code
      • variantDisplayName

        public java.lang.String variantDisplayName​(java.lang.String variant)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided variant.
        Specified by:
        variantDisplayName in class LocaleDisplayNames
        Parameters:
        variant - the variant string
        Returns:
        the display name of the provided variant
      • keyDisplayName

        public java.lang.String keyDisplayName​(java.lang.String key)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided locale key.
        Specified by:
        keyDisplayName in class LocaleDisplayNames
        Parameters:
        key - the locale key name
        Returns:
        the display name of the provided locale key
      • keyValueDisplayName

        public java.lang.String keyValueDisplayName​(java.lang.String key,
                                                    java.lang.String value)
        Description copied from class: LocaleDisplayNames
        Returns the display name of the provided value (used with the provided key).
        Specified by:
        keyValueDisplayName in class LocaleDisplayNames
        Parameters:
        key - the locale key name
        value - the locale key's value
        Returns:
        the display name of the provided value
      • getUiListCompareWholeItems

        public java.util.List<LocaleDisplayNames.UiListItem> getUiListCompareWholeItems​(java.util.Set<ULocale> localeSet,
                                                                                        java.util.Comparator<LocaleDisplayNames.UiListItem> comparator)
        Description copied from class: LocaleDisplayNames
        Return a list of information used to construct a UI list of locale names, providing more access to control the sorting. Normally use getUiList instead.
        Specified by:
        getUiListCompareWholeItems in class LocaleDisplayNames
        Parameters:
        localeSet - a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance.
        comparator - how to sort the UiListItems in the result.
        Returns:
        an ordered list of UiListItems.