Class TimeZoneNamesImpl.TZ2MZsCache

Enclosing class:
TimeZoneNamesImpl

private static class TimeZoneNamesImpl.TZ2MZsCache extends SoftCache<String,List<TimeZoneNamesImpl.MZMapEntry>,String>
  • Constructor Details

    • TZ2MZsCache

      private TZ2MZsCache()
  • Method Details

    • createInstance

      protected List<TimeZoneNamesImpl.MZMapEntry> createInstance(String key, String data)
      Description copied from class: CacheBase
      Creates an instance for the key and data. Must be overridden.
      Specified by:
      createInstance in class CacheBase<String,List<TimeZoneNamesImpl.MZMapEntry>,String>
      Parameters:
      key - Cache lookup key for the requested instance
      data - Data for the instance creation
      Returns:
      The requested instance
    • parseDate

      private static long parseDate(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