|
|
|
@ -31,10 +31,10 @@ public class CountryCodeToRegionCodeMapForTesting { |
|
|
|
// countries sharing a calling code, such as the NANPA countries, the one |
|
|
|
// indicated with "isMainCountryForCode" in the metadata should be first. |
|
|
|
static Map<Integer, List<String>> getCountryCodeToRegionCodeMap() { |
|
|
|
// The capacity is set to 30 as there are 23 different entries, |
|
|
|
// The capacity is set to 32 as there are 24 different entries, |
|
|
|
// and this offers a load factor of roughly 0.75. |
|
|
|
Map<Integer, List<String>> countryCodeToRegionCodeMap = |
|
|
|
new HashMap<Integer, List<String>>(30); |
|
|
|
new HashMap<Integer, List<String>>(32); |
|
|
|
|
|
|
|
ArrayList<String> listWithRegionCode; |
|
|
|
|
|
|
|
@ -62,6 +62,10 @@ public class CountryCodeToRegionCodeMapForTesting { |
|
|
|
listWithRegionCode.add("GG"); |
|
|
|
countryCodeToRegionCodeMap.put(44, listWithRegionCode); |
|
|
|
|
|
|
|
listWithRegionCode = new ArrayList<String>(1); |
|
|
|
listWithRegionCode.add("SE"); |
|
|
|
countryCodeToRegionCodeMap.put(46, listWithRegionCode); |
|
|
|
|
|
|
|
listWithRegionCode = new ArrayList<String>(1); |
|
|
|
listWithRegionCode.add("PL"); |
|
|
|
countryCodeToRegionCodeMap.put(48, listWithRegionCode); |
|
|
|
|