Class TimeZoneNamesImpl.TZ2MZsCache
java.lang.Object
com.ibm.icu.impl.CacheBase<String, List<TimeZoneNamesImpl.MZMapEntry>, String>
com.ibm.icu.impl.SoftCache<String, List<TimeZoneNamesImpl.MZMapEntry>, String>
com.ibm.icu.impl.TimeZoneNamesImpl.TZ2MZsCache
- Enclosing class:
TimeZoneNamesImpl
private static class TimeZoneNamesImpl.TZ2MZsCache
extends SoftCache<String, List<TimeZoneNamesImpl.MZMapEntry>, String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TimeZoneNamesImpl.MZMapEntry> createInstance(String key, String data) Creates an instance for the key and data.private static longPrivate static method parsing the date text used by meta zone to time zone mapping data in locale resource.Methods inherited from class SoftCache
getInstance
-
Constructor Details
-
TZ2MZsCache
private TZ2MZsCache()
-
-
Method Details
-
createInstance
Description copied from class:CacheBaseCreates an instance for the key and data. Must be overridden.- Specified by:
createInstancein classCacheBase<String, List<TimeZoneNamesImpl.MZMapEntry>, String>- Parameters:
key- Cache lookup key for the requested instancedata- Data for the instance creation- Returns:
- The requested instance
-
parseDate
Private static method parsing the date text used by meta zone to time zone mapping data in locale resource.- Parameters:
text- the UTC date text in the format of "yyyy-MM-dd HH:mm", for example - "1970-01-01 00:00"- Returns:
- the date
-