Top Inners Fields Constructors Methods
com.ibm.icu.text

pack-priv final Class CollatorServiceShim

extends ServiceShim
Class Inheritance
Imports
java.util.Locale, .MissingResourceException, .Set, com.ibm.icu.impl.ICUData, .ICULocaleService, .ICULocaleService.LocaleKeyFactory, .ICUResourceBundle, .ICUService, .ICUService.Factory, com.ibm.icu.impl.coll.CollationLoader, .CollationTailoring, com.ibm.icu.text.Collator.CollatorFactory, com.ibm.icu.util.ICUCloneNotSupportedException, .Output, .ULocale

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static ICULocaleService

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Locale[]
pack-priv ULocale[]
pack-priv String
pack-priv Collator
private static final Collator
makeInstance(ULocale desiredLocale)

pack-priv Object
pack-priv Object
pack-priv boolean

Field Detail

serviceback to summary
private static ICULocaleService service

Constructor Detail

CollatorServiceShimback to summary
pack-priv CollatorServiceShim()

Method Detail

getAvailableLocalesback to summary
pack-priv Locale[] getAvailableLocales()

Implements abstract com.ibm.icu.text.Collator.ServiceShim.getAvailableLocales.

Annotations
@Override
getAvailableULocalesback to summary
pack-priv ULocale[] getAvailableULocales()

Implements abstract com.ibm.icu.text.Collator.ServiceShim.getAvailableULocales.

Annotations
@Override
getDisplayNameback to summary
pack-priv String getDisplayName(ULocale objectLocale, ULocale displayLocale)

Implements abstract com.ibm.icu.text.Collator.ServiceShim.getDisplayName.

Annotations
@Override
getInstanceback to summary
pack-priv Collator getInstance(ULocale locale)

Implements abstract com.ibm.icu.text.Collator.ServiceShim.getInstance.

Annotations
@Override
makeInstanceback to summary
private static final Collator makeInstance(ULocale desiredLocale)
registerFactoryback to summary
pack-priv Object registerFactory(Collator.CollatorFactory f)

Implements abstract com.ibm.icu.text.Collator.ServiceShim.registerFactory.

Annotations
@Override
registerInstanceback to summary
pack-priv Object registerInstance(Collator collator, ULocale locale)

Implements abstract com.ibm.icu.text.Collator.ServiceShim.registerInstance.

Annotations
@Override
unregisterback to summary
pack-priv boolean unregister(Object registryKey)

Implements abstract com.ibm.icu.text.Collator.ServiceShim.unregister.

Annotations
@Override
com.ibm.icu.text back to summary

private Class CollatorServiceShim.CService

extends ICULocaleService
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Object
handleDefault(ICUService.Key key, String[] actualIDReturn)

Overrides com.ibm.icu.impl.ICUService.handleDefault.

Default handler for this service if no factory in the list handled the key.
public String
validateFallbackLocale()

Overrides com.ibm.icu.impl.ICULocaleService.validateFallbackLocale.

makeInstance() returns an appropriate Collator for any locale.
Inherited from com.ibm.icu.impl.ICULocaleService:
createKeycreateKeycreateKeygetgetgetgetgetAvailableLocalesgetAvailableULocalesregisterObjectregisterObjectregisterObjectregisterObject

Constructor Detail

CServiceback to summary
pack-priv CService()

Method Detail

handleDefaultback to summary
protected Object handleDefault(ICUService.Key key, String[] actualIDReturn)

Overrides com.ibm.icu.impl.ICUService.handleDefault.

Doc from com.ibm.icu.impl.ICUService.handleDefault.

Default handler for this service if no factory in the list handled the key.

Annotations
@Override
validateFallbackLocaleback to summary
public String validateFallbackLocale()

Overrides com.ibm.icu.impl.ICULocaleService.validateFallbackLocale.

makeInstance() returns an appropriate Collator for any locale. It falls back to root if there is no specific data.

Without this override, the service code would fall back to the default locale which is not desirable for an algorithm with a good Unicode default, like collation.

Annotations
@Override