Package com.ibm.icu.util

Examples of com.ibm.icu.util.UResourceBundle.keySet()


  @Override
  public synchronized Set<String> getAvailableMetaZoneIDs() {
    if (METAZONE_IDS == null) {
      UResourceBundle bundle = UResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME, "metaZones");
      UResourceBundle mapTimezones = bundle.get("mapTimezones");
      Set<String> keys = mapTimezones.keySet();
      METAZONE_IDS = Collections.unmodifiableSet(keys);
    }
    return METAZONE_IDS;
  }
View Full Code Here


      UResourceBundle mapTimezones = bundle.get("mapTimezones");

      try {
        UResourceBundle regionMap = mapTimezones.get(key);

        Set<String> regions = regionMap.keySet();
        map = new HashMap<String, String>(regions.size());

        for (String region : regions) {
          String tzID = regionMap.getString(region).intern();
          map.put(region.intern(), tzID);
View Full Code Here

                 // Create zone mappings for the metazone
                 UResourceBundle bundle = UResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME, "metaZones");
                 UResourceBundle mapTimezones = bundle.get("mapTimezones");
                 UResourceBundle territoryMap = mapTimezones.get(metazoneID);
                 zoneMap = new HashMap<String, String>();
                 Set<String> territories = territoryMap.keySet();
                 for (String territory : territories) {
                     String zone = territoryMap.getString(territory);
                     zoneMap.put(territory, zone);
                 }
                 // cache this
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.