summaryrefslogtreecommitdiff
path: root/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AlternateFormatsCountryCodeSet.java
blob: cca8a0b81c5cff1054a85102c3b8c8d3a696e345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* GENERATED SOURCE. DO NOT MODIFY. */
/*
 * Copyright (C) 2012 The Libphonenumber Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* This file is automatically generated by {@link BuildMetadataProtoFromXml}.
 * Please don't modify it directly.
 */

package com.android.i18n.phonenumbers;

import java.util.HashSet;
import java.util.Set;

/**
 * @hide This class is not part of the Android public SDK API
 */
public class AlternateFormatsCountryCodeSet {
  // A set of all country codes for which data is available.
  static Set<Integer> getCountryCodeSet() {
    // The capacity is set to 61 as there are 46 different entries,
    // and this offers a load factor of roughly 0.75.
    Set<Integer> countryCodeSet = new HashSet<Integer>(61);

    countryCodeSet.add(7);
    countryCodeSet.add(27);
    countryCodeSet.add(30);
    countryCodeSet.add(31);
    countryCodeSet.add(34);
    countryCodeSet.add(36);
    countryCodeSet.add(39);
    countryCodeSet.add(43);
    countryCodeSet.add(44);
    countryCodeSet.add(49);
    countryCodeSet.add(52);
    countryCodeSet.add(54);
    countryCodeSet.add(55);
    countryCodeSet.add(58);
    countryCodeSet.add(61);
    countryCodeSet.add(62);
    countryCodeSet.add(64);
    countryCodeSet.add(66);
    countryCodeSet.add(81);
    countryCodeSet.add(84);
    countryCodeSet.add(90);
    countryCodeSet.add(91);
    countryCodeSet.add(94);
    countryCodeSet.add(95);
    countryCodeSet.add(255);
    countryCodeSet.add(350);
    countryCodeSet.add(351);
    countryCodeSet.add(352);
    countryCodeSet.add(358);
    countryCodeSet.add(359);
    countryCodeSet.add(372);
    countryCodeSet.add(373);
    countryCodeSet.add(380);
    countryCodeSet.add(381);
    countryCodeSet.add(385);
    countryCodeSet.add(505);
    countryCodeSet.add(506);
    countryCodeSet.add(595);
    countryCodeSet.add(675);
    countryCodeSet.add(676);
    countryCodeSet.add(679);
    countryCodeSet.add(855);
    countryCodeSet.add(856);
    countryCodeSet.add(971);
    countryCodeSet.add(972);
    countryCodeSet.add(995);

    return countryCodeSet;
  }
}