Package com.ibm.icu.text
Class CollatorServiceShim.CService
- java.lang.Object
-
- com.ibm.icu.impl.ICUNotifier
-
- com.ibm.icu.impl.ICUService
-
- com.ibm.icu.impl.ICULocaleService
-
- com.ibm.icu.text.CollatorServiceShim.CService
-
- Enclosing class:
- CollatorServiceShim
private static class CollatorServiceShim.CService extends ICULocaleService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICULocaleService
ICULocaleService.ICUResourceBundleFactory, ICULocaleService.LocaleKey, ICULocaleService.LocaleKeyFactory, ICULocaleService.SimpleLocaleKeyFactory
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICUService
ICUService.Factory, ICUService.Key, ICUService.ServiceListener, ICUService.SimpleFactory
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.impl.ICUService
name
-
-
Constructor Summary
Constructors Constructor Description CService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
handleDefault(ICUService.Key key, java.lang.String[] actualIDReturn)
Default handler for this service if no factory in the list handled the key.java.lang.String
validateFallbackLocale()
makeInstance() returns an appropriate Collator for any locale.-
Methods inherited from class com.ibm.icu.impl.ICULocaleService
createKey, createKey, createKey, get, get, get, get, getAvailableLocales, getAvailableULocales, registerObject, registerObject, registerObject, registerObject
-
Methods inherited from class com.ibm.icu.impl.ICUService
acceptsListener, clearCaches, clearServiceCache, factories, get, get, getDisplayName, getDisplayName, getDisplayNames, getDisplayNames, getDisplayNames, getDisplayNames, getDisplayNames, getKey, getKey, getKey, getName, getVisibleIDs, getVisibleIDs, isDefault, markDefault, notifyListener, registerFactory, registerObject, registerObject, reInitializeFactories, reset, stats, toString, unregisterFactory
-
Methods inherited from class com.ibm.icu.impl.ICUNotifier
addListener, notifyChanged, removeListener
-
-
-
-
Method Detail
-
validateFallbackLocale
public java.lang.String 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.
- Overrides:
validateFallbackLocale
in classICULocaleService
-
handleDefault
protected java.lang.Object handleDefault(ICUService.Key key, java.lang.String[] actualIDReturn)
Description copied from class:ICUService
Default handler for this service if no factory in the list handled the key.- Overrides:
handleDefault
in classICUService
-
-