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 ""; }
static BytecodeHelper() { IterableOrIteratorElementTypes = new HashMap<String, TypeKind>(); IterableOrIteratorElementTypes["stab/lang/BooleanIterable"] = TypeKind.Boolean; IterableOrIteratorElementTypes["stab/lang/BooleanIterator"] = TypeKind.Boolean; IterableOrIteratorElementTypes["stab/lang/ByteIterable"] = TypeKind.Byte; IterableOrIteratorElementTypes["stab/lang/ByteIterator"] = TypeKind.Byte; IterableOrIteratorElementTypes["stab/lang/ShortIterable"] = TypeKind.Short; IterableOrIteratorElementTypes["stab/lang/ShortIterator"] = TypeKind.Short; IterableOrIteratorElementTypes["stab/lang/CharIterable"] = TypeKind.Char; IterableOrIteratorElementTypes["stab/lang/CharIterator"] = TypeKind.Char; IterableOrIteratorElementTypes["stab/lang/IntIterable"] = TypeKind.Int; IterableOrIteratorElementTypes["stab/lang/IntIterator"] = TypeKind.Int; IterableOrIteratorElementTypes["stab/lang/LongIterable"] = TypeKind.Long; IterableOrIteratorElementTypes["stab/lang/LongIterator"] = TypeKind.Long; IterableOrIteratorElementTypes["stab/lang/FloatIterable"] = TypeKind.Float; IterableOrIteratorElementTypes["stab/lang/FloatIterator"] = TypeKind.Float; IterableOrIteratorElementTypes["stab/lang/DoubleIterable"] = TypeKind.Double; IterableOrIteratorElementTypes["stab/lang/DoubleIterator"] = TypeKind.Double; IterableTypes = new HashSet<String>(); IterableTypes.add("stab/lang/BooleanIterable"); IterableTypes.add("stab/lang/ByteIterable"); IterableTypes.add("stab/lang/ShortIterable"); IterableTypes.add("stab/lang/CharIterable"); IterableTypes.add("stab/lang/IntIterable"); IterableTypes.add("stab/lang/LongIterable"); IterableTypes.add("stab/lang/FloatIterable"); IterableTypes.add("stab/lang/DoubleIterable"); IterableTypes.add("java/lang/Iterable"); }
public DowngradeActionMap() { base.\u002Ector(); DowngradeActionMap downgradeActionMap = this; this.actionMap = new HashMap(); this.actionList = new ArrayList(); }
public DefaultKeyedValues() { base.\u002Ector(); DefaultKeyedValues defaultKeyedValues = this; this.keys = new ArrayList(); this.values = new ArrayList(); this.indexMap = new HashMap(); }
protected internal Log() { base.\u002Ector(); Log log = this; this.logContexts = new HashMap(); this.logTargets = new LogTarget[0]; this.debuglevel = 100; }
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); }
public XMLWidget() { base.\u002Ector(); XMLWidget xmlWidget = this; this.location = (Point) null; this.size = (Dimension) null; this.properties = new HashMap(); this.className = ""; }
static ClassFileType() { TypeKinds = new HashMap<String, NumericTypeKind>(); TypeKinds["java/lang/Byte"] = NumericTypeKind.Byte; TypeKinds["java/lang/Short"] = NumericTypeKind.Short; TypeKinds["java/lang/Character"] = NumericTypeKind.Char; TypeKinds["java/lang/Integer"] = NumericTypeKind.Int; TypeKinds["java/lang/Long"] = NumericTypeKind.Long; TypeKinds["java/lang/Float"] = NumericTypeKind.Float; TypeKinds["java/lang/Double"] = NumericTypeKind.Double; }
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)); }
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)); }
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); }
public override string InterfaceMethod1(string _string) { string text = Test.Integration.Interface_Fields.Default + java.lang.Object.instancehelper_toString(Test.Integration.Interface_Fields._params); text = java.lang.String.instancehelper_trim(java.lang.String.instancehelper_substring(text, 1)) + java.lang.Class.forName(typeof(Test.Integration.Interface[]).AssemblyQualifiedName) + java.lang.Class.forName(typeof(Class1).AssemblyQualifiedName) + java.lang.Object.instancehelper_getClass(this); string _lock = ""; Test.Integration.InterfaceInnerClass anonymousClass = new AnonymousClassInterface_InterfaceInnerClass1(text, this, _lock); Map map = new HashMap(); if (map.containsKey(text) && ExistSimilarFieldAndMethod()) { lock (text) { Iterator it = map.keySet().iterator(); Map.Entry entry = (Map.Entry)it.next(); object key = entry.getKey(); } } return java.lang.String.instancehelper_charAt(text, 0) + java.lang.String.instancehelper_replaceAll(text, "\\s", " "); }
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); }
public static PackageManager createInstance(AbstractBoot booter) { if (PackageManager.instances == null) { PackageManager.instances = new HashMap(); PackageManager packageManager = new PackageManager(booter); PackageManager.instances.put((object) booter, (object) packageManager); return packageManager; } else { PackageManager packageManager = (PackageManager) PackageManager.instances.get((object) booter); if (packageManager == null) { packageManager = new PackageManager(booter); PackageManager.instances.put((object) booter, (object) packageManager); } return packageManager; } }
public Library(String[] classPath, Library parent) { this.classPath = new ArrayList<String>(); foreach(string path in classPath) this.classPath.add(path); this.fileClasses = new HashMap<String, File>(128); int capacity = (parent == null) ? 0x5000 : 128; this.jarClasses = new HashMap<String, ZipFile>(capacity); this.classNames = new ArrayList<String>(capacity); this.typeInfos = new HashMap<String, TypeInfo>(); this.constructedGenericTypes = new HashMap<TypeInfo, ArrayList<TypeInfo>>(); this.constructedGenericMethods = new HashMap<MethodInfo, ArrayList<MethodInfo>>(); this.parent = parent; if (parent == null) { initializeBootClasses(); } foreach (var path in classPath) { explorePath(path); } }
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; }
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; }
private void putProperties(TypeInfo declaringType, Map<String, MemberInfo> members) { var getters = new HashMap<String, MethodInfo>(); var setters = new HashMap<String, MethodInfo>(); foreach (var method in declaringType.Methods.where(p => !p.IsSynthetic && !p.Name.startsWith("<"))) { foreach (var annotation in BytecodeHelper.getAnnotations(annotatedTypeSystem, method)) { if (BytecodeHelper.isPropertyGet(annotation)) { var name = BytecodeHelper.getPropertyGetName(method, annotation); getters[name] = method; break; } if (BytecodeHelper.isPropertySet(annotation)) { var name = BytecodeHelper.getPropertySetName(method, annotation); setters[name] = method; break; } } } foreach (var e in getters.entrySet()) { var setter = setters.remove(e.Key); var member = MemberInfo.getInfo(e.Value, setter, e.Key); members[e.Key] = member; } foreach (var e in setters.entrySet()) { var member = MemberInfo.getInfo(null, e.Value, e.Key); members[e.Key] = member; } }
public Iterable<MemberInfo> getMembers(TypeInfo declaringType, bool staticOnly) { var members = new HashMap<String, MemberInfo>(); foreach (var t in declaringType.getBaseTypes().reverse()) { putFields(t, members); putProperties(t, members); putMethods(t, members); putNestedTypes(t, members); } putFields(declaringType, members); putProperties(declaringType, members); putMethods(declaringType, members); putNestedTypes(declaringType, members); return filterMembers(typeInfos[typeInfos.size() - 1], staticOnly, members.values()); }
public Iterable<MemberInfo> getMembers(String identifier) { if (identifier.equals("this")) { return getMembers(); } else if (identifier.equals("super")) { var type = typeInfos[typeInfos.size() - 1]; return getMembers(type.BaseType, false); } var members = new HashMap<String, MemberInfo>(); putTypeMembers(members); var type = typeInfos[typeInfos.size() - 1]; foreach (var t in type.getBaseTypes().reverse()) { putFields(t, members); putProperties(t, members); putNestedTypes(t, members); } putFields(type, members); putProperties(type, members); putNestedTypes(type, members); putLocals(members); var member = members[identifier]; if (member == null) { return Query.empty(); } return getMembers(member.Type, (member.MemberKind == MemberKind.Local) ? false : member.IsStatic); }
public Iterable<MemberInfo> getTypeMembers() { var members = new HashMap<String, MemberInfo>(); putTypeMembers(members); return members.values(); }
static MainPanel() { JPanel.__\u003Cclinit\u003E(); MainPanel.__\u003C\u003Epanels = new HashMap(); }
/// <summary> /// Constructs a new, empty set; the backing <tt>HashMap</tt> instance has /// default initial capacity (16) and load factor (0.75). /// </summary> public HashSet() { Map = new HashMap <>(); }
internal static Map <T1, T2> synchronizedMap <T1, T2>(HashMap <T1, T2> collection) where T2 : class { return(collection); }
: super(AnnotationArgumentKind.Annotation) { this.type = type; this.runtimeVisible = runtimeVisible; this.arguments = new HashMap<String, RawAnnotationArgument>(); }
public HashSet() { map = new HashMap(); }
public override Map getFacets () { return _facets ?? (_facets = new HashMap ()); }
public override Map getAttributes () { return _attributes ?? (_attributes = new HashMap ()); }
CompilerContext(CompilerParameters parameters, CompilerResults results) { this.Parameters = parameters; this.Results = results; this.CompilationUnits = new ArrayList<CompilationUnitNode>(); this.TypeBuilders = new ArrayList<TypeBuilder>(); this.Iterables = new HashMap<MethodBuilder, TypeBuilder>(); this.ConstructorBuilders = new ArrayList<MethodBuilder>(); this.CodeValidationContext = new CodeValidationContext(this); this.MethodGenerationContext = new MethodGenerationContext(); this.LambdaScopes = new HashMap<MethodBuilder, TypeBuilder>(); this.ConstantBuilder = new ConstantBuilder(this); this.PrivateAccessors = new HashMap<Object, MethodInfo>(); this.PrivateMutators = new HashMap<Object, MethodInfo>(); this.localFields = new HashMap<LocalMemberInfo, FieldInfo>(); }
public static void writeAttributedString(AttributedString @as, ObjectOutputStream stream) { if (stream == null) { string str = "Null 'stream' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (@as != null) { stream.writeBoolean(false); AttributedCharacterIterator iterator = @as.getIterator(); StringBuffer stringBuffer = new StringBuffer(); for (int index = (int) ((CharacterIterator) iterator).first(); index != (int) ushort.MaxValue; index = (int) ((CharacterIterator) iterator).next()) stringBuffer = stringBuffer.append((char) index); stream.writeObject((object) stringBuffer.toString()); int num = (int) ((CharacterIterator) iterator).first(); int beginIndex = ((CharacterIterator) iterator).getBeginIndex(); for (; num != (int) ushort.MaxValue; { int runLimit; num = (int) ((CharacterIterator) iterator).setIndex(runLimit); } ) { stream.writeChar(num); runLimit = iterator.getRunLimit(); stream.writeInt(runLimit - beginIndex); HashMap hashMap = new HashMap(iterator.getAttributes()); stream.writeObject((object) hashMap); } stream.writeChar((int) ushort.MaxValue); } else stream.writeBoolean(true); }
private Map<String, MemberInfo> getMemberMap() { var members = new HashMap<String, MemberInfo>(); putTypeMembers(members); var type = typeInfos[typeInfos.size() - 1]; foreach (var t in type.getBaseTypes().reverse()) { putFields(t, members); putProperties(t, members); putMethods(t, members); putNestedTypes(t, members); } putFields(type, members); putProperties(type, members); putMethods(type, members); putNestedTypes(type, members); putLocals(members); return members; }
public HashNMap() { base.\u002Ector(); HashNMap hashNmap = this; this.table = new HashMap(); }