put() public method

public put ( java arg0, java arg1 ) : global::java.lang.Object
arg0 java
arg1 java
return global::java.lang.Object
コード例 #1
0
        static MappingFileProvider()
        {
            Map<String, String> normalizationMap = new HashMap<String, String>();
            normalizationMap.put("zh_TW", "zh_Hant");
            normalizationMap.put("zh_HK", "zh_Hant");
            normalizationMap.put("zh_MO", "zh_Hant");

            LOCALE_NORMALIZATION_MAP = Collections.unmodifiableMap(normalizationMap);
        }
コード例 #2
0
ファイル: CodeGenerator.cs プロジェクト: bdlions/CSharpIfElse
        public String testFreemarker()
        {
            Assembly _assembly;
            _assembly = Assembly.GetExecutingAssembly();
            //Console.WriteLine(_assembly.
            try{
                Configuration cfg = new Configuration();
                cfg.setDirectoryForTemplateLoading(new File("template"));
                //cfg.setDirectoryForTemplateLoading(new File(""));
                cfg.setObjectWrapper(new DefaultObjectWrapper());

                Template temp = cfg.getTemplate("c.ftl");

                Map root = new HashMap();
                root.put("codeGen", this);

                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                Writer output = new OutputStreamWriter(outputStream);

                temp.process(root, output);
                output.flush();
                //System.Console.WriteLine(outputStream.toString());
                return outputStream.toString();

            }
            catch (IOException exception) {

            } catch (TemplateException exception) {

            }
            return "";
        }
コード例 #3
0
ファイル: MainActivity.cs プロジェクト: hakeemsm/XobotOS
		List<Map<String,Object>> getData ()
		{
			var list = new ArrayList<Map<String,Object>> ();
			foreach (Type type in Assembly.GetExecutingAssembly ().GetTypes ()) {
				var attrs = type.GetCustomAttributes (typeof(TestAttribute), false);
				if ((attrs == null) || (attrs.Length != 1))
					continue;

				var attr = (TestAttribute)attrs [0];
				var map = new HashMap<String,Object> ();
				map.put ("title", attr.Name);
				map.put ("type", type);
				list.add (Collections.unmodifiableMap (map));
			}
			return Collections.unmodifiableList (list);
		}
コード例 #4
0
ファイル: DataWatcher.cs プロジェクト: riverar/Crafty
 static DataWatcher()
 {
     dataTypes = new HashMap();
     dataTypes.put(typeof (Byte), Integer.valueOf(0));
     dataTypes.put(typeof (sbyte), Integer.valueOf(0));
     dataTypes.put(typeof (Short), Integer.valueOf(1));
     dataTypes.put(typeof (Integer), Integer.valueOf(2));
     dataTypes.put(typeof (Float), Integer.valueOf(3));
     dataTypes.put(typeof (String), Integer.valueOf(4));
     dataTypes.put(typeof (ItemStack), Integer.valueOf(5));
     dataTypes.put(typeof (ChunkCoordinates), Integer.valueOf(6));
 }
コード例 #5
0
ファイル: MainActivity.cs プロジェクト: hakeemsm/XobotOS
		List<Map<String,Object>> getData ()
		{
			var list = new ArrayList<Map<String,Object>> ();

			var drawables = getResources ().obtainTypedArray (R.array.lemur_drawables);
			var strings = getResources ().getStringArray (R.array.lemur_strings);

			for (int i = 0; i < drawables.length(); i++) {
				var drawable = drawables.getDrawable (i);
				var resId = drawables.getResourceId (i, -1);
				var monkey = new Monkey (strings [i], drawable, resId);
				var map = new HashMap<String,Object> ();
				map.put ("title", monkey.Name);
				map.put ("monkey", monkey);
				list.add (Collections.unmodifiableMap (map));
			}

			return Collections.unmodifiableList (list);
		}
コード例 #6
0
    public static void sort(List modules)
    {
      HashMap hashMap = new HashMap();
      ArrayList arrayList1 = new ArrayList();
      ArrayList arrayList2 = new ArrayList();
      for (int index = 0; index < modules.size(); ++index)
      {
        PackageState packageState = (PackageState) modules.get(index);
        if (packageState.getState() == -2)
        {
          arrayList1.add((object) packageState);
        }
        else
        {
          PackageSorter.SortModule sortModule = new PackageSorter.SortModule(packageState);
          arrayList2.add((object) sortModule);
          hashMap.put((object) packageState.getModule().getModuleClass(), (object) sortModule);
        }
      }
      PackageSorter.SortModule[] sortModuleArray = (PackageSorter.SortModule[]) arrayList2.toArray((object[]) new PackageSorter.SortModule[arrayList2.size()]);
      for (int index = 0; index < sortModuleArray.Length; ++index)
      {
        PackageSorter.SortModule sortModule = sortModuleArray[index];
        sortModule.setDependSubsystems(PackageSorter.collectSubsystemModules(sortModule.getState().getModule(), hashMap));
      }
      int num1 = 1;
label_10:
      while (num1 != 0)
      {
        num1 = 0;
        int index = 0;
        while (true)
        {
          if (index < sortModuleArray.Length)
          {
            PackageSorter.SortModule sortModule = sortModuleArray[index];
            int num2 = PackageSorter.searchModulePosition(sortModule, hashMap);
            if (num2 != sortModule.getPosition())
            {
              sortModule.setPosition(num2);
              num1 = 1;
            }
            ++index;
          }
          else
            goto label_10;
        }
      }
      Arrays.sort((object[]) sortModuleArray);
      modules.clear();
      for (int index = 0; index < sortModuleArray.Length; ++index)
        modules.add((object) sortModuleArray[index].getState());
      for (int index = 0; index < arrayList1.size(); ++index)
        modules.add(arrayList1.get(index));
    }
コード例 #7
0
ファイル: NetworkAcceptThread.cs プロジェクト: riverar/Crafty
 public override void run()
 {
     var hashmap = new HashMap();
     do
     {
         if (!field_985_b.field_973_b)
         {
             break;
         }
         try
         {
             Socket socket = NetworkListenThread.func_713_a(field_985_b).accept();
             if (socket != null)
             {
                 InetAddress inetaddress = socket.getInetAddress();
                 if (hashmap.containsKey(inetaddress) && !"127.0.0.1".Equals(inetaddress.getHostAddress()) &&
                     java.lang.System.currentTimeMillis() - ((Long) hashmap.get(inetaddress)).longValue() < 5000L)
                 {
                     hashmap.put(inetaddress, Long.valueOf(java.lang.System.currentTimeMillis()));
                     socket.close();
                 }
                 else
                 {
                     hashmap.put(inetaddress, Long.valueOf(java.lang.System.currentTimeMillis()));
                     var netloginhandler = new NetLoginHandler(mcServer, socket,
                                                               (new StringBuilder()).append(
                                                                   "Connection #").append(
                                                                       NetworkListenThread.func_712_b
                                                                           (field_985_b)).toString());
                     NetworkListenThread.func_716_a(field_985_b, netloginhandler);
                 }
             }
         }
         catch (IOException ioexception)
         {
             ioexception.printStackTrace();
         }
     } while (true);
 }
        // A mapping from a country code to the region codes which denote the
        // country/region represented by that country code. In the case of multiple
        // countries sharing a calling code, such as the NANPA countries, the one
        // indicated with "isMainCountryForCode" in the metadata should be first.
        internal static Map<Integer, List<String>> getCountryCodeToRegionCodeMap()
        {
            // The capacity is set to 28 as there are 21 different entries,
            // and this offers a load factor of roughly 0.75.
            Map<Integer, List<String>> countryCodeToRegionCodeMap =
            new HashMap<Integer, List<String>>(28);

            ArrayList<String> listWithRegionCode;

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("US");
            listWithRegionCode.add("BS");
            countryCodeToRegionCodeMap.put(1, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FR");
            countryCodeToRegionCodeMap.put(33, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IT");
            countryCodeToRegionCodeMap.put(39, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("GB");
            listWithRegionCode.add("GG");
            countryCodeToRegionCodeMap.put(44, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PL");
            countryCodeToRegionCodeMap.put(48, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("DE");
            countryCodeToRegionCodeMap.put(49, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MX");
            countryCodeToRegionCodeMap.put(52, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AR");
            countryCodeToRegionCodeMap.put(54, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BR");
            countryCodeToRegionCodeMap.put(55, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AU");
            countryCodeToRegionCodeMap.put(61, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NZ");
            countryCodeToRegionCodeMap.put(64, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SG");
            countryCodeToRegionCodeMap.put(65, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("JP");
            countryCodeToRegionCodeMap.put(81, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KR");
            countryCodeToRegionCodeMap.put(82, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AO");
            countryCodeToRegionCodeMap.put(244, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("RE");
            listWithRegionCode.add("YT");
            countryCodeToRegionCodeMap.put(262, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BY");
            countryCodeToRegionCodeMap.put(375, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AD");
            countryCodeToRegionCodeMap.put(376, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(800, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AE");
            countryCodeToRegionCodeMap.put(971, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(979, listWithRegionCode);

            return countryCodeToRegionCodeMap;
        }
コード例 #9
0
        override public void ExpReort(string taskName)
        {
            try
            {
                string reports_dir = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "reports");
                fileName = System.IO.Path.Combine(reports_dir, fileName);
                DateTime          start = DateTime.Now;/////  DateTime.Now.Millisecond;
                JREmptyDataSource ds    = new JREmptyDataSource(1);
                java.util.Map     parms = new java.util.HashMap();
                if (fileName.IndexOf("JChartsReport.jasper") > -1)
                {
                    BufferedImage bufferedImage = getJChart();
                    parms.put("pjChart", bufferedImage);
                }

                if (TASK_FILL.Equals(taskName))
                {
                    JasperFillManager.fillReportToFile(fileName, parms, ds);
                    System.Console.WriteLine("TASK_FILL time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_PRINT.Equals(taskName))
                {
                    JasperPrintManager.printReport(fileName, true);
                    System.Console.WriteLine("TASK_FILL time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_TEXT.Equals(taskName))
                {
                    JRTextExporter exporter   = new JRTextExporter();
                    File           sourceFile = new File(fileName);
                    net.sf.jasperreports.engine.JasperReport jasperPrint = (net.sf.jasperreports.engine.JasperReport)JRLoader.loadObject(sourceFile);
                    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".txt");
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
                    exporter.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new java.lang.Integer(10));
                    exporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new java.lang.Integer(10));
                    exporter.exportReport();

                    System.Console.WriteLine("TASK_TEXT creation time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_PDF.Equals(taskName))
                {
                    File        sourceFile  = new File(fileName);
                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    JasperExportManager.exportReportToPdfFile(jasperPrint, fileName + ".pdf");

                    System.Console.WriteLine("TASK_PDF creation time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_RTF.Equals(taskName))
                {
                    File sourceFile = new File(fileName);

                    ////net.sf.jasperreports.engine.JasperReport jasperPrint = (net.sf.jasperreports.engine.JasperReport)JRLoader.loadObject(sourceFile);
                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    File        destFile    = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");

                    JRRtfExporter exporter = new JRRtfExporter();

                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

                    exporter.exportReport();

                    System.Console.WriteLine("TASK_RTF creation time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_DOCX.Equals(taskName))
                {
                    File sourceFile = new File(fileName);

                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);

                    File           destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".docx");
                    JRDocxExporter exporter = new JRDocxExporter();

                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

                    exporter.exportReport();
                    TimeSpan prot = DateTime.Now.Subtract(start);
                    System.Console.WriteLine("TASK_DOCX creation time : " + prot.Seconds);
                }
                else if (TASK_PPTX.Equals(taskName))
                {
                    File           sourceFile  = new File(fileName);
                    JasperPrint    jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    File           destFile    = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
                    JRPptxExporter exporter    = new JRPptxExporter();
                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

                    exporter.exportReport();
                    TimeSpan prot = DateTime.Now.Subtract(start);
                    System.Console.WriteLine("TASK_PPTX creation time : " + prot.Seconds);
                }
                else if (TASK_XLS.Equals(taskName))
                {
                    File sourceFile  = new File(fileName);
                    Map  dateFormats = new HashMap();
                    dateFormats.put("EEE, MMM d, yyyy", "ddd, mmm d, yyyy");

                    parms.put(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, java.lang.Boolean.FALSE);
                    parms.put(JRXlsExporterParameter.IS_FONT_SIZE_FIX_ENABLED, java.lang.Boolean.TRUE);
                    parms.put(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, java.lang.Boolean.FALSE);
                    parms.put(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, java.lang.Boolean.TRUE);
                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    /////JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
                    //JExcelApiExporter, JROdsExporter, JRXlsAbstractMetadataExporter, JRXlsExporter, JRXlsxExporter
                    File          destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".xls");
                    JRXlsExporter exporter = new JRXlsExporter();
                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

                    exporter.exportReport();
                    System.Console.WriteLine("TASK_XLS creation time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_XLSX.Equals(taskName))
                {
                    File sourceFile  = new File(fileName);
                    Map  dateFormats = new HashMap();
                    dateFormats.put("EEE, MMM d, yyyy", "ddd, mmm d, yyyy");

                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    /////JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
                    File           destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".xlsx");
                    JRXlsxExporter exporter = new JRXlsxExporter();
                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
                    exporter.exportReport();
                    System.Console.WriteLine("TASK_XLSX creation time : " + (DateTime.Now.Subtract(start)));
                }
                else if (TASK_HTML.Equals(taskName))
                {
                    File sourceFile  = new File(fileName);
                    Map  dateFormats = new HashMap();
                    dateFormats.put("EEE, MMM d, yyyy", "ddd, mmm d, yyyy");

                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    /////JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
                    File           destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".html");
                    JRHtmlExporter exporter = new JRHtmlExporter();
                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
                    exporter.exportReport();
                    System.Console.WriteLine("TASK_HTML creation time : " + (DateTime.Now.Subtract(start)));
                }
                //else if (TASK_JXL.Equals(taskName))
                //{
                //    File sourceFile = new File(fileName);
                //    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                //    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".jxl.xls");
                //    JExcelApiExporter exporter = new JExcelApiExporter();
                //    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                //    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
                //    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, java.lang.Boolean.TRUE);

                //    exporter.exportReport();

                //    System.Console.WriteLine("TASK_JXL XLS creation time : " + (DateTime.Now.Subtract(start)));
                //}
                else if (TASK_CSV.Equals(taskName))
                {
                    File sourceFile = new File(fileName);

                    JasperPrint jasperPrint = JasperFillManager.fillReport(fileName, parms, ds);
                    ////JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

                    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".csv");

                    JRCsvExporter exporter = new JRCsvExporter();

                    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

                    exporter.exportReport();

                    System.Console.WriteLine("TASK_CSV creation time : " + (DateTime.Now.Subtract(start)));
                }
                else
                {
                    //// usage();
                }
            }
            catch (Exception e)
            {
                string str = e.StackTrace;
                System.Console.WriteLine(e.StackTrace);
                throw e;
                ///e.printStackTrace();
            }
            finally
            {
            }//end try
        }
        // A mapping from a country code to the region codes which denote the
        // country/region represented by that country code. In the case of multiple
        // countries sharing a calling code, such as the NANPA countries, the one
        // indicated with "isMainCountryForCode" in the metadata should be first.
        internal static Map<Integer, List<String>> getCountryCodeToRegionCodeMap()
        {
            // The capacity is set to 286 as there are 215 different entries,
            // and this offers a load factor of roughly 0.75.
            Map<Integer, List<String>> countryCodeToRegionCodeMap =
            new HashMap<Integer, List<String>>(286);

            ArrayList<String> listWithRegionCode;

            listWithRegionCode = new ArrayList<String>(25);
            listWithRegionCode.add("US");
            listWithRegionCode.add("AG");
            listWithRegionCode.add("AI");
            listWithRegionCode.add("AS");
            listWithRegionCode.add("BB");
            listWithRegionCode.add("BM");
            listWithRegionCode.add("BS");
            listWithRegionCode.add("CA");
            listWithRegionCode.add("DM");
            listWithRegionCode.add("DO");
            listWithRegionCode.add("GD");
            listWithRegionCode.add("GU");
            listWithRegionCode.add("JM");
            listWithRegionCode.add("KN");
            listWithRegionCode.add("KY");
            listWithRegionCode.add("LC");
            listWithRegionCode.add("MP");
            listWithRegionCode.add("MS");
            listWithRegionCode.add("PR");
            listWithRegionCode.add("SX");
            listWithRegionCode.add("TC");
            listWithRegionCode.add("TT");
            listWithRegionCode.add("VC");
            listWithRegionCode.add("VG");
            listWithRegionCode.add("VI");
            countryCodeToRegionCodeMap.put(1, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("RU");
            listWithRegionCode.add("KZ");
            countryCodeToRegionCodeMap.put(7, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("EG");
            countryCodeToRegionCodeMap.put(20, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ZA");
            countryCodeToRegionCodeMap.put(27, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GR");
            countryCodeToRegionCodeMap.put(30, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NL");
            countryCodeToRegionCodeMap.put(31, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BE");
            countryCodeToRegionCodeMap.put(32, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FR");
            countryCodeToRegionCodeMap.put(33, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ES");
            countryCodeToRegionCodeMap.put(34, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("HU");
            countryCodeToRegionCodeMap.put(36, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IT");
            countryCodeToRegionCodeMap.put(39, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("RO");
            countryCodeToRegionCodeMap.put(40, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CH");
            countryCodeToRegionCodeMap.put(41, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AT");
            countryCodeToRegionCodeMap.put(43, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(4);
            listWithRegionCode.add("GB");
            listWithRegionCode.add("GG");
            listWithRegionCode.add("IM");
            listWithRegionCode.add("JE");
            countryCodeToRegionCodeMap.put(44, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("DK");
            countryCodeToRegionCodeMap.put(45, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SE");
            countryCodeToRegionCodeMap.put(46, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("NO");
            listWithRegionCode.add("SJ");
            countryCodeToRegionCodeMap.put(47, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PL");
            countryCodeToRegionCodeMap.put(48, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("DE");
            countryCodeToRegionCodeMap.put(49, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PE");
            countryCodeToRegionCodeMap.put(51, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MX");
            countryCodeToRegionCodeMap.put(52, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CU");
            countryCodeToRegionCodeMap.put(53, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AR");
            countryCodeToRegionCodeMap.put(54, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BR");
            countryCodeToRegionCodeMap.put(55, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CL");
            countryCodeToRegionCodeMap.put(56, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CO");
            countryCodeToRegionCodeMap.put(57, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("VE");
            countryCodeToRegionCodeMap.put(58, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MY");
            countryCodeToRegionCodeMap.put(60, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(3);
            listWithRegionCode.add("AU");
            listWithRegionCode.add("CC");
            listWithRegionCode.add("CX");
            countryCodeToRegionCodeMap.put(61, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ID");
            countryCodeToRegionCodeMap.put(62, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PH");
            countryCodeToRegionCodeMap.put(63, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NZ");
            countryCodeToRegionCodeMap.put(64, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SG");
            countryCodeToRegionCodeMap.put(65, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TH");
            countryCodeToRegionCodeMap.put(66, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("JP");
            countryCodeToRegionCodeMap.put(81, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KR");
            countryCodeToRegionCodeMap.put(82, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("VN");
            countryCodeToRegionCodeMap.put(84, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CN");
            countryCodeToRegionCodeMap.put(86, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TR");
            countryCodeToRegionCodeMap.put(90, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IN");
            countryCodeToRegionCodeMap.put(91, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PK");
            countryCodeToRegionCodeMap.put(92, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AF");
            countryCodeToRegionCodeMap.put(93, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LK");
            countryCodeToRegionCodeMap.put(94, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MM");
            countryCodeToRegionCodeMap.put(95, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IR");
            countryCodeToRegionCodeMap.put(98, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SS");
            countryCodeToRegionCodeMap.put(211, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("MA");
            listWithRegionCode.add("EH");
            countryCodeToRegionCodeMap.put(212, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("DZ");
            countryCodeToRegionCodeMap.put(213, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TN");
            countryCodeToRegionCodeMap.put(216, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LY");
            countryCodeToRegionCodeMap.put(218, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GM");
            countryCodeToRegionCodeMap.put(220, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SN");
            countryCodeToRegionCodeMap.put(221, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MR");
            countryCodeToRegionCodeMap.put(222, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ML");
            countryCodeToRegionCodeMap.put(223, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GN");
            countryCodeToRegionCodeMap.put(224, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CI");
            countryCodeToRegionCodeMap.put(225, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BF");
            countryCodeToRegionCodeMap.put(226, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NE");
            countryCodeToRegionCodeMap.put(227, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TG");
            countryCodeToRegionCodeMap.put(228, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BJ");
            countryCodeToRegionCodeMap.put(229, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MU");
            countryCodeToRegionCodeMap.put(230, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LR");
            countryCodeToRegionCodeMap.put(231, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SL");
            countryCodeToRegionCodeMap.put(232, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GH");
            countryCodeToRegionCodeMap.put(233, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NG");
            countryCodeToRegionCodeMap.put(234, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TD");
            countryCodeToRegionCodeMap.put(235, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CF");
            countryCodeToRegionCodeMap.put(236, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CM");
            countryCodeToRegionCodeMap.put(237, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CV");
            countryCodeToRegionCodeMap.put(238, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ST");
            countryCodeToRegionCodeMap.put(239, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GQ");
            countryCodeToRegionCodeMap.put(240, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GA");
            countryCodeToRegionCodeMap.put(241, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CG");
            countryCodeToRegionCodeMap.put(242, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CD");
            countryCodeToRegionCodeMap.put(243, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AO");
            countryCodeToRegionCodeMap.put(244, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GW");
            countryCodeToRegionCodeMap.put(245, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IO");
            countryCodeToRegionCodeMap.put(246, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AC");
            countryCodeToRegionCodeMap.put(247, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SC");
            countryCodeToRegionCodeMap.put(248, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SD");
            countryCodeToRegionCodeMap.put(249, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("RW");
            countryCodeToRegionCodeMap.put(250, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ET");
            countryCodeToRegionCodeMap.put(251, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SO");
            countryCodeToRegionCodeMap.put(252, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("DJ");
            countryCodeToRegionCodeMap.put(253, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KE");
            countryCodeToRegionCodeMap.put(254, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TZ");
            countryCodeToRegionCodeMap.put(255, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("UG");
            countryCodeToRegionCodeMap.put(256, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BI");
            countryCodeToRegionCodeMap.put(257, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MZ");
            countryCodeToRegionCodeMap.put(258, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ZM");
            countryCodeToRegionCodeMap.put(260, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MG");
            countryCodeToRegionCodeMap.put(261, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("RE");
            listWithRegionCode.add("YT");
            countryCodeToRegionCodeMap.put(262, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ZW");
            countryCodeToRegionCodeMap.put(263, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NA");
            countryCodeToRegionCodeMap.put(264, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MW");
            countryCodeToRegionCodeMap.put(265, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LS");
            countryCodeToRegionCodeMap.put(266, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BW");
            countryCodeToRegionCodeMap.put(267, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SZ");
            countryCodeToRegionCodeMap.put(268, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KM");
            countryCodeToRegionCodeMap.put(269, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("SH");
            listWithRegionCode.add("TA");
            countryCodeToRegionCodeMap.put(290, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ER");
            countryCodeToRegionCodeMap.put(291, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AW");
            countryCodeToRegionCodeMap.put(297, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FO");
            countryCodeToRegionCodeMap.put(298, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GL");
            countryCodeToRegionCodeMap.put(299, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GI");
            countryCodeToRegionCodeMap.put(350, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PT");
            countryCodeToRegionCodeMap.put(351, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LU");
            countryCodeToRegionCodeMap.put(352, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IE");
            countryCodeToRegionCodeMap.put(353, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IS");
            countryCodeToRegionCodeMap.put(354, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AL");
            countryCodeToRegionCodeMap.put(355, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MT");
            countryCodeToRegionCodeMap.put(356, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CY");
            countryCodeToRegionCodeMap.put(357, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("FI");
            listWithRegionCode.add("AX");
            countryCodeToRegionCodeMap.put(358, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BG");
            countryCodeToRegionCodeMap.put(359, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LT");
            countryCodeToRegionCodeMap.put(370, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LV");
            countryCodeToRegionCodeMap.put(371, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("EE");
            countryCodeToRegionCodeMap.put(372, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MD");
            countryCodeToRegionCodeMap.put(373, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AM");
            countryCodeToRegionCodeMap.put(374, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BY");
            countryCodeToRegionCodeMap.put(375, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AD");
            countryCodeToRegionCodeMap.put(376, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MC");
            countryCodeToRegionCodeMap.put(377, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SM");
            countryCodeToRegionCodeMap.put(378, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("VA");
            countryCodeToRegionCodeMap.put(379, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("UA");
            countryCodeToRegionCodeMap.put(380, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("RS");
            countryCodeToRegionCodeMap.put(381, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("ME");
            countryCodeToRegionCodeMap.put(382, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("HR");
            countryCodeToRegionCodeMap.put(385, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SI");
            countryCodeToRegionCodeMap.put(386, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BA");
            countryCodeToRegionCodeMap.put(387, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MK");
            countryCodeToRegionCodeMap.put(389, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CZ");
            countryCodeToRegionCodeMap.put(420, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SK");
            countryCodeToRegionCodeMap.put(421, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LI");
            countryCodeToRegionCodeMap.put(423, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FK");
            countryCodeToRegionCodeMap.put(500, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BZ");
            countryCodeToRegionCodeMap.put(501, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GT");
            countryCodeToRegionCodeMap.put(502, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SV");
            countryCodeToRegionCodeMap.put(503, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("HN");
            countryCodeToRegionCodeMap.put(504, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NI");
            countryCodeToRegionCodeMap.put(505, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CR");
            countryCodeToRegionCodeMap.put(506, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PA");
            countryCodeToRegionCodeMap.put(507, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PM");
            countryCodeToRegionCodeMap.put(508, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("HT");
            countryCodeToRegionCodeMap.put(509, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(3);
            listWithRegionCode.add("GP");
            listWithRegionCode.add("BL");
            listWithRegionCode.add("MF");
            countryCodeToRegionCodeMap.put(590, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BO");
            countryCodeToRegionCodeMap.put(591, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GY");
            countryCodeToRegionCodeMap.put(592, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("EC");
            countryCodeToRegionCodeMap.put(593, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GF");
            countryCodeToRegionCodeMap.put(594, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PY");
            countryCodeToRegionCodeMap.put(595, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MQ");
            countryCodeToRegionCodeMap.put(596, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SR");
            countryCodeToRegionCodeMap.put(597, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("UY");
            countryCodeToRegionCodeMap.put(598, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(2);
            listWithRegionCode.add("CW");
            listWithRegionCode.add("BQ");
            countryCodeToRegionCodeMap.put(599, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TL");
            countryCodeToRegionCodeMap.put(670, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NF");
            countryCodeToRegionCodeMap.put(672, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BN");
            countryCodeToRegionCodeMap.put(673, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NR");
            countryCodeToRegionCodeMap.put(674, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PG");
            countryCodeToRegionCodeMap.put(675, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TO");
            countryCodeToRegionCodeMap.put(676, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SB");
            countryCodeToRegionCodeMap.put(677, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("VU");
            countryCodeToRegionCodeMap.put(678, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FJ");
            countryCodeToRegionCodeMap.put(679, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PW");
            countryCodeToRegionCodeMap.put(680, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("WF");
            countryCodeToRegionCodeMap.put(681, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("CK");
            countryCodeToRegionCodeMap.put(682, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NU");
            countryCodeToRegionCodeMap.put(683, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("WS");
            countryCodeToRegionCodeMap.put(685, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KI");
            countryCodeToRegionCodeMap.put(686, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NC");
            countryCodeToRegionCodeMap.put(687, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TV");
            countryCodeToRegionCodeMap.put(688, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PF");
            countryCodeToRegionCodeMap.put(689, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TK");
            countryCodeToRegionCodeMap.put(690, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("FM");
            countryCodeToRegionCodeMap.put(691, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MH");
            countryCodeToRegionCodeMap.put(692, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(800, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(808, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KP");
            countryCodeToRegionCodeMap.put(850, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("HK");
            countryCodeToRegionCodeMap.put(852, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MO");
            countryCodeToRegionCodeMap.put(853, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KH");
            countryCodeToRegionCodeMap.put(855, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LA");
            countryCodeToRegionCodeMap.put(856, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(870, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(878, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BD");
            countryCodeToRegionCodeMap.put(880, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(881, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(882, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(883, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TW");
            countryCodeToRegionCodeMap.put(886, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(888, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MV");
            countryCodeToRegionCodeMap.put(960, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("LB");
            countryCodeToRegionCodeMap.put(961, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("JO");
            countryCodeToRegionCodeMap.put(962, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SY");
            countryCodeToRegionCodeMap.put(963, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IQ");
            countryCodeToRegionCodeMap.put(964, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KW");
            countryCodeToRegionCodeMap.put(965, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("SA");
            countryCodeToRegionCodeMap.put(966, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("YE");
            countryCodeToRegionCodeMap.put(967, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("OM");
            countryCodeToRegionCodeMap.put(968, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("PS");
            countryCodeToRegionCodeMap.put(970, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AE");
            countryCodeToRegionCodeMap.put(971, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("IL");
            countryCodeToRegionCodeMap.put(972, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BH");
            countryCodeToRegionCodeMap.put(973, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("QA");
            countryCodeToRegionCodeMap.put(974, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("BT");
            countryCodeToRegionCodeMap.put(975, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("MN");
            countryCodeToRegionCodeMap.put(976, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("NP");
            countryCodeToRegionCodeMap.put(977, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("001");
            countryCodeToRegionCodeMap.put(979, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TJ");
            countryCodeToRegionCodeMap.put(992, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("TM");
            countryCodeToRegionCodeMap.put(993, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("AZ");
            countryCodeToRegionCodeMap.put(994, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("GE");
            countryCodeToRegionCodeMap.put(995, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("KG");
            countryCodeToRegionCodeMap.put(996, listWithRegionCode);

            listWithRegionCode = new ArrayList<String>(1);
            listWithRegionCode.add("UZ");
            countryCodeToRegionCodeMap.put(998, listWithRegionCode);

            return countryCodeToRegionCodeMap;
        }
コード例 #11
0
 public override bool add(object e)
 {
     return(map.put(e, PRESENT) == null);
 }
コード例 #12
0
ファイル: CraftingManager.cs プロジェクト: riverar/Crafty
        public void addRecipe(ItemStack itemstack, object[] aobj)
        {
            string s = "";
            int i = 0;
            int j = 0;
            int k = 0;
            if (aobj[i] is string[])
            {
                var ask = (string[]) aobj[i++];
                for (int l = 0; l < ask.Length; l++)
                {
                    string s2 = ask[l];
                    k++;
                    j = s2.Length;
                    s = (new StringBuilder()).append(s).append(s2).toString();
                }
            }
            else
            {
                while (aobj[i] is string)
                {
                    var s1 = (string) aobj[i++];
                    k++;
                    j = s1.Length;
                    s = (new StringBuilder()).append(s).append(s1).toString();
                }
            }
            var hashmap = new HashMap();
            for (; i < aobj.Length; i += 2)
            {
                var character = (Character) aobj[i];
                ItemStack itemstack1 = null;
                if (aobj[i + 1] is Item)
                {
                    itemstack1 = new ItemStack((Item) aobj[i + 1]);
                }
                else if (aobj[i + 1] is Block)
                {
                    itemstack1 = new ItemStack((Block) aobj[i + 1], 1, -1);
                }
                else if (aobj[i + 1] is ItemStack)
                {
                    itemstack1 = (ItemStack) aobj[i + 1];
                }
                hashmap.put(character, itemstack1);
            }

            var aitemstack = new ItemStack[j*k];
            for (int i1 = 0; i1 < j*k; i1++)
            {
                char c = s[i1];
                if (hashmap.containsKey(Character.valueOf(c)))
                {
                    aitemstack[i1] = ((ItemStack) hashmap.get(Character.valueOf(c))).copy();
                }
                else
                {
                    aitemstack[i1] = null;
                }
            }

            recipes.add(new ShapedRecipes(j, k, aitemstack, itemstack));
        }