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.
-
-
Constructor Summary
Constructors Constructor Description SimpleLocaleKeyFactory(java.lang.Object obj, ULocale locale, int kind, boolean visible)
SimpleLocaleKeyFactory(java.lang.Object obj, ULocale locale, int kind, boolean visible, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
create(ICUService.Key key, ICUService service)
Returns the service object if kind/locale match.protected boolean
isSupportedID(java.lang.String idToCheck)
Return true if this id is one the factory supports (visible or otherwise).java.lang.String
toString()
For debugging.void
updateVisibleIDs(java.util.Map<java.lang.String,ICUService.Factory> result)
Override of superclass method.-
Methods inherited from class com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
getDisplayName, getSupportedIDs, handleCreate, handlesKey
-
-
-
-
Method Detail
-
create
public java.lang.Object create(ICUService.Key key, ICUService service)
Returns the service object if kind/locale match. Service is not used.- Specified by:
create
in interfaceICUService.Factory
- Overrides:
create
in classICULocaleService.LocaleKeyFactory
-
isSupportedID
protected boolean isSupportedID(java.lang.String idToCheck)
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
public void updateVisibleIDs(java.util.Map<java.lang.String,ICUService.Factory> result)
Description copied from class:ICULocaleService.LocaleKeyFactory
Override of superclass method.- Specified by:
updateVisibleIDs
in interfaceICUService.Factory
- Overrides:
updateVisibleIDs
in classICULocaleService.LocaleKeyFactory
-
toString
public java.lang.String toString()
Description copied from class:ICULocaleService.LocaleKeyFactory
For debugging.- Overrides:
toString
in classICULocaleService.LocaleKeyFactory
-
-