Modifier and Type | Field and Description |
---|---|
private static volatile Locale[] | |
private static final CLDRBaseLocaleDataMetaInfo | |
private static final Map | |
private static final Locale | |
private static final Locale | |
private final LocaleDataMetaInfo | |
private static final Map |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private static Locale | |
private List | |
public Optional | |
protected Set | |
public LocaleProviderAdapter. | Returns: the type of thisOverrides sun. Returns the type of this LocaleProviderAdapter |
public Locale[] | getAvailableLocales()
Overrides sun. Returns a list of the installed locales. |
public BreakIteratorProvider | getBreakIteratorProvider()
Overrides sun. Returns a BreakIteratorProvider for this LocaleProviderAdapter, or null if no BreakIteratorProvider is available. |
public CalendarDataProvider | getCalendarDataProvider()
Overrides sun. Returns a CalendarDataProvider for this LocaleProviderAdapter, or null if no CalendarDataProvider is available. |
public CalendarNameProvider | getCalendarNameProvider()
Overrides sun. Returns a CalendarNameProvider for this LocaleProviderAdapter, or null if no CalendarNameProvider is available. |
public List | getCandidateLocales(String baseName, Locale locale)
Overrides sun. Implements sun. candidate locales customization |
public CollatorProvider | getCollatorProvider()
Overrides sun. Returns a CollatorProvider for this LocaleProviderAdapter, or null if no CollatorProvider is available. |
private static Locale | getEquivalentLoc(Locale locale)
This method returns equivalent CLDR supported locale for no, no-NO locales so that COMPAT locales do not precede those locales during ResourceBundle search path, also if an alias exists for a locale, it returns equivalent locale, e.g for zh_HK it returns zh_Hant-HK. |
private static Locale | |
public TimeZoneNameProvider | getTimeZoneNameProvider()
Overrides sun. Returns a TimeZoneNameProvider for this LocaleProviderAdapter, or null if no TimeZoneNameProvider is available. |
public boolean | isSupportedProviderLocale(Locale locale, Set<String> langtags)
Overrides sun. A utility method for implementing the default LocaleServiceProvider.isSupportedLocale for the JRE, CLDR, and FALLBACK adapters. |
AVAILABLE_LOCALES | back to summary |
---|---|
private static volatile Locale[] AVAILABLE_LOCALES |
baseMetaInfo | back to summary |
---|---|
private static final CLDRBaseLocaleDataMetaInfo baseMetaInfo |
langAliasesCache | back to summary |
---|---|
private static final Map<Locale, Locale> langAliasesCache |
NB | back to summary |
---|---|
private static final Locale NB |
NO | back to summary |
---|---|
private static final Locale NO |
nonBaseMetaInfo | back to summary |
---|---|
private final LocaleDataMetaInfo nonBaseMetaInfo |
parentLocalesMap | back to summary |
---|---|
private static final Map<Locale, Locale> parentLocalesMap |
CLDRLocaleProviderAdapter | back to summary |
---|---|
public CLDRLocaleProviderAdapter()
|
applyAliases | back to summary |
---|---|
private static Locale applyAliases(Locale loc) |
applyParentLocales | back to summary |
---|---|
private List |
canonicalTZID | back to summary |
---|---|
public Optional Returns the canonical ID for the given ID |
createLanguageTagSet | back to summary |
---|---|
protected Set Overrides sun.
|
getAdapterType | back to summary |
---|---|
public LocaleProviderAdapter. Overrides sun. Returns the type of this LocaleProviderAdapter
|
getAvailableLocales | back to summary |
---|---|
public Locale[] getAvailableLocales() Overrides sun. Doc from sun. Returns a list of the installed locales. Currently, this simply returns the list of locales for which a sun.text.resources.FormatData bundle exists. This bundle family happens to be the one with the broadest locale coverage in the JRE.
|
getBreakIteratorProvider | back to summary |
---|---|
public BreakIteratorProvider getBreakIteratorProvider() Overrides sun. Doc from sun. Returns a BreakIteratorProvider for this LocaleProviderAdapter, or null if no BreakIteratorProvider is available.
|
getCalendarDataProvider | back to summary |
---|---|
public CalendarDataProvider getCalendarDataProvider() Overrides sun. Doc from sun. Returns a CalendarDataProvider for this LocaleProviderAdapter, or null if no CalendarDataProvider is available.
|
getCalendarNameProvider | back to summary |
---|---|
public CalendarNameProvider getCalendarNameProvider() Overrides sun. Doc from sun. Returns a CalendarNameProvider for this LocaleProviderAdapter, or null if no CalendarNameProvider is available.
|
getCandidateLocales | back to summary |
---|---|
public List Overrides sun. Implements sun. Doc from sun. candidate locales customization
|
getCollatorProvider | back to summary |
---|---|
public CollatorProvider getCollatorProvider() Overrides sun. Doc from sun. Returns a CollatorProvider for this LocaleProviderAdapter, or null if no CollatorProvider is available.
|
getEquivalentLoc | back to summary |
---|---|
private static Locale getEquivalentLoc(Locale locale) This method returns equivalent CLDR supported locale for no, no-NO locales so that COMPAT locales do not precede those locales during ResourceBundle search path, also if an alias exists for a locale, it returns equivalent locale, e.g for zh_HK it returns zh_Hant-HK. |
getParentLocale | back to summary |
---|---|
private static Locale getParentLocale(Locale locale) |
getTimeZoneNameProvider | back to summary |
---|---|
public TimeZoneNameProvider getTimeZoneNameProvider() Overrides sun. Doc from sun. Returns a TimeZoneNameProvider for this LocaleProviderAdapter, or null if no TimeZoneNameProvider is available.
|
isSupportedProviderLocale | back to summary |
---|---|
public boolean isSupportedProviderLocale(Locale locale, Set<String> langtags) Overrides sun. Doc from sun. A utility method for implementing the default LocaleServiceProvider.isSupportedLocale for the JRE, CLDR, and FALLBACK adapters.
|