Package com.ibm.icu.impl
Class TimeZoneNamesImpl.TZ2MZsCache
java.lang.Object
com.ibm.icu.impl.CacheBase<K,V,D>
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 long
Private static method parsing the date text used by meta zone to time zone mapping data in locale resource.Methods inherited from class com.ibm.icu.impl.SoftCache
getInstance
-
Constructor Details
-
TZ2MZsCache
private TZ2MZsCache()
-
-
Method Details
-
createInstance
Description copied from class:CacheBase
Creates an instance for the key and data. Must be overridden.- Specified by:
createInstance
in 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
-