public put ( java arg0, java arg1 ) : global::java.lang.Object | ||
arg0 | java | |
arg1 | java | |
return | global::java.lang.Object |
public AreaCodeMapTest() { SortedMap<Integer, String> sortedMapForUS = new TreeMap<Integer, String>(); sortedMapForUS.put(1212, "New York"); sortedMapForUS.put(1480, "Arizona"); sortedMapForUS.put(1650, "California"); sortedMapForUS.put(1907, "Alaska"); sortedMapForUS.put(1201664, "Westwood, NJ"); sortedMapForUS.put(1480893, "Phoenix, AZ"); sortedMapForUS.put(1501372, "Little Rock, AR"); sortedMapForUS.put(1626308, "Alhambra, CA"); sortedMapForUS.put(1650345, "San Mateo, CA"); sortedMapForUS.put(1867993, "Dawson, YT"); sortedMapForUS.put(1972480, "Richardson, TX"); areaCodeMapForUS.readAreaCodeMap(sortedMapForUS); SortedMap<Integer, String> sortedMapForIT = new TreeMap<Integer, String>(); sortedMapForIT.put(3902, "Milan"); sortedMapForIT.put(3906, "Rome"); sortedMapForIT.put(39010, "Genoa"); sortedMapForIT.put(390131, "Alessandria"); sortedMapForIT.put(390321, "Novara"); sortedMapForIT.put(390975, "Potenza"); areaCodeMapForIT.readAreaCodeMap(sortedMapForIT); }
private static SortedMap<Integer, String> createFlyweightStorageMapCandidate() { SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); sortedMap.put(1212, "New York"); sortedMap.put(1213, "New York"); sortedMap.put(1214, "New York"); sortedMap.put(1480, "Arizona"); return sortedMap; }
private static SortedMap<Integer, String> createDefaultStorageMapCandidate() { SortedMap<Integer, String> sortedMap = new TreeMap<Integer, String>(); // Make the area codes bigger to store them using integer. sortedMap.put(121212345, "New York"); sortedMap.put(148034434, "Arizona"); return sortedMap; }