1 /* 2 * Copyright (C) 2012 The Libphonenumber Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /* This file is automatically generated by {@link BuildMetadataProtoFromXml}. 18 * Please don't modify it directly. 19 */ 20 21 package com.google.i18n.phonenumbers; 22 23 import java.util.HashSet; 24 import java.util.Set; 25 26 public class AlternateFormatsCountryCodeSet { 27 // A set of all country codes for which data is available. getCountryCodeSet()28 public static Set<Integer> getCountryCodeSet() { 29 // The capacity is set to 61 as there are 46 different entries, 30 // and this offers a load factor of roughly 0.75. 31 Set<Integer> countryCodeSet = new HashSet<Integer>(61); 32 33 countryCodeSet.add(7); 34 countryCodeSet.add(27); 35 countryCodeSet.add(30); 36 countryCodeSet.add(31); 37 countryCodeSet.add(34); 38 countryCodeSet.add(36); 39 countryCodeSet.add(39); 40 countryCodeSet.add(43); 41 countryCodeSet.add(44); 42 countryCodeSet.add(49); 43 countryCodeSet.add(52); 44 countryCodeSet.add(54); 45 countryCodeSet.add(55); 46 countryCodeSet.add(58); 47 countryCodeSet.add(61); 48 countryCodeSet.add(62); 49 countryCodeSet.add(64); 50 countryCodeSet.add(66); 51 countryCodeSet.add(81); 52 countryCodeSet.add(84); 53 countryCodeSet.add(90); 54 countryCodeSet.add(91); 55 countryCodeSet.add(94); 56 countryCodeSet.add(95); 57 countryCodeSet.add(255); 58 countryCodeSet.add(350); 59 countryCodeSet.add(351); 60 countryCodeSet.add(352); 61 countryCodeSet.add(358); 62 countryCodeSet.add(359); 63 countryCodeSet.add(372); 64 countryCodeSet.add(373); 65 countryCodeSet.add(380); 66 countryCodeSet.add(381); 67 countryCodeSet.add(385); 68 countryCodeSet.add(505); 69 countryCodeSet.add(506); 70 countryCodeSet.add(595); 71 countryCodeSet.add(675); 72 countryCodeSet.add(676); 73 countryCodeSet.add(679); 74 countryCodeSet.add(855); 75 countryCodeSet.add(856); 76 countryCodeSet.add(971); 77 countryCodeSet.add(972); 78 countryCodeSet.add(995); 79 80 return countryCodeSet; 81 } 82 } 83