Package com.ibm.icu.impl
Class TimeZoneNamesImpl.TZ2MZsCache
- java.lang.Object
-
- com.ibm.icu.impl.CacheBase<K,V,D>
-
- com.ibm.icu.impl.SoftCache<java.lang.String,java.util.List<TimeZoneNamesImpl.MZMapEntry>,java.lang.String>
-
- com.ibm.icu.impl.TimeZoneNamesImpl.TZ2MZsCache
-
- Enclosing class:
- TimeZoneNamesImpl
private static class TimeZoneNamesImpl.TZ2MZsCache extends SoftCache<java.lang.String,java.util.List<TimeZoneNamesImpl.MZMapEntry>,java.lang.String>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TZ2MZsCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<TimeZoneNamesImpl.MZMapEntry>
createInstance(java.lang.String key, java.lang.String data)
Creates an instance for the key and data.private static long
parseDate(java.lang.String text)
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
-
-
-
-
Method Detail
-
createInstance
protected java.util.List<TimeZoneNamesImpl.MZMapEntry> createInstance(java.lang.String key, java.lang.String data)
Description copied from class:CacheBase
Creates an instance for the key and data. Must be overridden.- Specified by:
createInstance
in classCacheBase<java.lang.String,java.util.List<TimeZoneNamesImpl.MZMapEntry>,java.lang.String>
- Parameters:
key
- Cache lookup key for the requested instancedata
- Data for the instance creation- Returns:
- The requested instance
-
parseDate
private static long parseDate(java.lang.String text)
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
-
-