Package com.ibm.icu.impl
Class ICULocaleService.SimpleLocaleKeyFactory
java.lang.Object
com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
com.ibm.icu.impl.ICULocaleService.SimpleLocaleKeyFactory
- All Implemented Interfaces:
ICUService.Factory
- Enclosing class:
ICULocaleService
public static class ICULocaleService.SimpleLocaleKeyFactory
extends ICULocaleService.LocaleKeyFactory
A LocaleKeyFactory that just returns a single object for a kind/locale.
-
Field Summary
FieldsFields inherited from class com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
INVISIBLE, name, visible, VISIBLE
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLocaleKeyFactory
(Object obj, ULocale locale, int kind, boolean visible) SimpleLocaleKeyFactory
(Object obj, ULocale locale, int kind, boolean visible, String name) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ICUService.Key key, ICUService service) Returns the service object if kind/locale match.protected boolean
isSupportedID
(String idToCheck) Return true if this id is one the factory supports (visible or otherwise).toString()
For debugging.void
updateVisibleIDs
(Map<String, ICUService.Factory> result) Override of superclass method.Methods inherited from class com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
getDisplayName, getSupportedIDs, handleCreate, handlesKey
-
Field Details
-
obj
-
id
-
kind
private final int kind
-
-
Constructor Details
-
SimpleLocaleKeyFactory
-
SimpleLocaleKeyFactory
-
-
Method Details
-
create
Returns the service object if kind/locale match. Service is not used.- Specified by:
create
in interfaceICUService.Factory
- Overrides:
create
in classICULocaleService.LocaleKeyFactory
-
isSupportedID
Description copied from class:ICULocaleService.LocaleKeyFactory
Return true if this id is one the factory supports (visible or otherwise).- Overrides:
isSupportedID
in classICULocaleService.LocaleKeyFactory
-
updateVisibleIDs
Description copied from class:ICULocaleService.LocaleKeyFactory
Override of superclass method.- Specified by:
updateVisibleIDs
in interfaceICUService.Factory
- Overrides:
updateVisibleIDs
in classICULocaleService.LocaleKeyFactory
-
toString
Description copied from class:ICULocaleService.LocaleKeyFactory
For debugging.- Overrides:
toString
in classICULocaleService.LocaleKeyFactory
-