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
-
Fields inherited from class com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory
INVISIBLE, name, visible, VISIBLE
-
-
Constructor Summary
Constructors Constructor Description SimpleLocaleKeyFactory(Object obj, ULocale locale, int kind, boolean visible)SimpleLocaleKeyFactory(Object obj, ULocale locale, int kind, boolean visible, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(ICUService.Key key, ICUService service)Returns the service object if kind/locale match.protected booleanisSupportedID(String idToCheck)Return true if this id is one the factory supports (visible or otherwise).StringtoString()For debugging.voidupdateVisibleIDs(Map<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 Object create(ICUService.Key key, ICUService service)
Returns the service object if kind/locale match. Service is not used.- Specified by:
createin interfaceICUService.Factory- Overrides:
createin classICULocaleService.LocaleKeyFactory
-
isSupportedID
protected boolean isSupportedID(String idToCheck)
Description copied from class:ICULocaleService.LocaleKeyFactoryReturn true if this id is one the factory supports (visible or otherwise).- Overrides:
isSupportedIDin classICULocaleService.LocaleKeyFactory
-
updateVisibleIDs
public void updateVisibleIDs(Map<String,ICUService.Factory> result)
Description copied from class:ICULocaleService.LocaleKeyFactoryOverride of superclass method.- Specified by:
updateVisibleIDsin interfaceICUService.Factory- Overrides:
updateVisibleIDsin classICULocaleService.LocaleKeyFactory
-
toString
public String toString()
Description copied from class:ICULocaleService.LocaleKeyFactoryFor debugging.- Overrides:
toStringin classICULocaleService.LocaleKeyFactory- Returns:
- a printable representation of this object.
-
-