public enum CountryCode extends Enum<CountryCode> implements Localizable
Modifier and Type | Method and Description |
---|---|
static CountryCode |
a2ToCode(String a2) |
static CountryCode |
a3ToCode(String a3) |
String |
getA2() |
String |
getA3() |
static CountryCode |
getCountryCode(Locale locale) |
static CountryCode |
getDefault() |
String |
getDisplayString(Locale inLocale)
Returns a string that is appropriate to display to the user.
|
String |
getNumber() |
static CountryCode |
numberToCode(String number) |
String |
toString() |
static CountryCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CountryCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CountryCode AFGHANISTAN
public static final CountryCode ALBANIA
public static final CountryCode ALGERIA
public static final CountryCode AMERICAN_SAMOA
public static final CountryCode ANDORRA
public static final CountryCode ANGOLA
public static final CountryCode ANGUILLA
public static final CountryCode ANTARCTICA
public static final CountryCode ANTIGUA_AND_BARBUDA
public static final CountryCode ARGENTINA
public static final CountryCode ARMENIA
public static final CountryCode ARUBA
public static final CountryCode AUSTRALIA
public static final CountryCode AUSTRIA
public static final CountryCode AZERBAIJAN
public static final CountryCode BAHAMAS
public static final CountryCode BAHRAIN
public static final CountryCode BANGLADESH
public static final CountryCode BARBADOS
public static final CountryCode BELARUS
public static final CountryCode BELGIUM
public static final CountryCode BELIZE
public static final CountryCode BENIN
public static final CountryCode BERMUDA
public static final CountryCode BHUTAN
public static final CountryCode BOLIVIA
public static final CountryCode BOSNIA_AND_HERZEGOWINA
public static final CountryCode BOTSWANA
public static final CountryCode BOUVET_ISLAND
public static final CountryCode BRAZIL
public static final CountryCode BRITISH_INDIAN_OCEAN_TERRITORY
public static final CountryCode BRUNEI_DARUSSALAM
public static final CountryCode BULGARIA
public static final CountryCode BURKINA_FASO
public static final CountryCode BURUNDI
public static final CountryCode CAMBODIA
public static final CountryCode CAMEROON
public static final CountryCode CANADA
public static final CountryCode CAPE_VERDE
public static final CountryCode CAYMAN_ISLANDS
public static final CountryCode CENTRAL_AFRICAN_REPUBLIC
public static final CountryCode CHAD
public static final CountryCode CHILE
public static final CountryCode CHINA
public static final CountryCode CHRISTMAS_ISLAND
public static final CountryCode COCOS__KEELING__ISLANDS
public static final CountryCode COLOMBIA
public static final CountryCode COMOROS
public static final CountryCode CONGO__DEMOCRATIC_REPUBLIC_OF__WAS_ZAIRE_
public static final CountryCode CONGO__PEOPLE_S_REPUBLIC_OF
public static final CountryCode COOK_ISLANDS
public static final CountryCode COSTA_RICA
public static final CountryCode COTE_D_IVOIRE
public static final CountryCode CROATIA__LOCAL_NAME__HRVATSKA_
public static final CountryCode CUBA
public static final CountryCode CYPRUS
public static final CountryCode CZECH_REPUBLIC
public static final CountryCode DENMARK
public static final CountryCode DJIBOUTI
public static final CountryCode DOMINICA
public static final CountryCode DOMINICAN_REPUBLIC
public static final CountryCode EAST_TIMOR
public static final CountryCode ECUADOR
public static final CountryCode EGYPT
public static final CountryCode EL_SALVADOR
public static final CountryCode EQUATORIAL_GUINEA
public static final CountryCode ERITREA
public static final CountryCode ESTONIA
public static final CountryCode ETHIOPIA
public static final CountryCode FALKLAND_ISLANDS__MALVINAS_
public static final CountryCode FAROE_ISLANDS
public static final CountryCode FIJI
public static final CountryCode FINLAND
public static final CountryCode FRANCE
public static final CountryCode FRANCE__METROPOLITAN
public static final CountryCode FRENCH_GUIANA
public static final CountryCode FRENCH_POLYNESIA
public static final CountryCode FRENCH_SOUTHERN_TERRITORIES
public static final CountryCode GABON
public static final CountryCode GAMBIA
public static final CountryCode GEORGIA
public static final CountryCode GERMANY
public static final CountryCode GHANA
public static final CountryCode GIBRALTAR
public static final CountryCode GREECE
public static final CountryCode GREENLAND
public static final CountryCode GRENADA
public static final CountryCode GUADELOUPE
public static final CountryCode GUAM
public static final CountryCode GUATEMALA
public static final CountryCode GUINEA
public static final CountryCode GUINEA_BISSAU
public static final CountryCode GUYANA
public static final CountryCode HAITI
public static final CountryCode HEARD_AND_MC_DONALD_ISLANDS
public static final CountryCode HONDURAS
public static final CountryCode HONG_KONG
public static final CountryCode HUNGARY
public static final CountryCode ICELAND
public static final CountryCode INDIA
public static final CountryCode INDONESIA
public static final CountryCode IRAN__ISLAMIC_REPUBLIC_OF_
public static final CountryCode IRAQ
public static final CountryCode IRELAND
public static final CountryCode ISRAEL
public static final CountryCode ITALY
public static final CountryCode JAMAICA
public static final CountryCode JAPAN
public static final CountryCode JORDAN
public static final CountryCode KAZAKHSTAN
public static final CountryCode KENYA
public static final CountryCode KIRIBATI
public static final CountryCode KOREA__DEMOCRATIC_PEOPLE_S_REPUBLIC_OF
public static final CountryCode KOREA__REPUBLIC_OF
public static final CountryCode KUWAIT
public static final CountryCode KYRGYZSTAN
public static final CountryCode LAO_PEOPLE_S_DEMOCRATIC_REPUBLIC
public static final CountryCode LATVIA
public static final CountryCode LEBANON
public static final CountryCode LESOTHO
public static final CountryCode LIBERIA
public static final CountryCode LIBYAN_ARAB_JAMAHIRIYA
public static final CountryCode LIECHTENSTEIN
public static final CountryCode LITHUANIA
public static final CountryCode LUXEMBOURG
public static final CountryCode MACAU
public static final CountryCode MACEDONIA__THE_FORMER_YUGOSLAV_REPUBLIC_OF
public static final CountryCode MADAGASCAR
public static final CountryCode MALAWI
public static final CountryCode MALAYSIA
public static final CountryCode MALDIVES
public static final CountryCode MALI
public static final CountryCode MALTA
public static final CountryCode MARSHALL_ISLANDS
public static final CountryCode MARTINIQUE
public static final CountryCode MAURITANIA
public static final CountryCode MAURITIUS
public static final CountryCode MAYOTTE
public static final CountryCode MEXICO
public static final CountryCode MICRONESIA__FEDERATED_STATES_OF
public static final CountryCode MOLDOVA__REPUBLIC_OF
public static final CountryCode MONACO
public static final CountryCode MONGOLIA
public static final CountryCode MONTSERRAT
public static final CountryCode MOROCCO
public static final CountryCode MOZAMBIQUE
public static final CountryCode MYANMAR
public static final CountryCode NAMIBIA
public static final CountryCode NAURU
public static final CountryCode NEPAL
public static final CountryCode NETHERLANDS
public static final CountryCode NETHERLANDS_ANTILLES
public static final CountryCode NEW_CALEDONIA
public static final CountryCode NEW_ZEALAND
public static final CountryCode NICARAGUA
public static final CountryCode NIGER
public static final CountryCode NIGERIA
public static final CountryCode NIUE
public static final CountryCode NORFOLK_ISLAND
public static final CountryCode NORTHERN_MARIANA_ISLANDS
public static final CountryCode NORWAY
public static final CountryCode OMAN
public static final CountryCode PAKISTAN
public static final CountryCode PALAU
public static final CountryCode PALESTINIAN_TERRITORY__OCCUPIED
public static final CountryCode PANAMA
public static final CountryCode PAPUA_NEW_GUINEA
public static final CountryCode PARAGUAY
public static final CountryCode PERU
public static final CountryCode PHILIPPINES
public static final CountryCode PITCAIRN
public static final CountryCode POLAND
public static final CountryCode PORTUGAL
public static final CountryCode PUERTO_RICO
public static final CountryCode QATAR
public static final CountryCode REUNION
public static final CountryCode ROMANIA
public static final CountryCode RUSSIAN_FEDERATION
public static final CountryCode RWANDA
public static final CountryCode SAINT_KITTS_AND_NEVIS
public static final CountryCode SAINT_LUCIA
public static final CountryCode SAINT_VINCENT_AND_THE_GRENADINES
public static final CountryCode SAMOA
public static final CountryCode SAN_MARINO
public static final CountryCode SAO_TOME_AND_PRINCIPE
public static final CountryCode SAUDI_ARABIA
public static final CountryCode SENEGAL
public static final CountryCode SEYCHELLES
public static final CountryCode SIERRA_LEONE
public static final CountryCode SINGAPORE
public static final CountryCode SLOVAKIA__SLOVAK_REPUBLIC_
public static final CountryCode SLOVENIA
public static final CountryCode SOLOMON_ISLANDS
public static final CountryCode SOMALIA
public static final CountryCode SOUTH_AFRICA
public static final CountryCode SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS
public static final CountryCode SPAIN
public static final CountryCode SRI_LANKA
public static final CountryCode ST_HELENA
public static final CountryCode ST_PIERRE_AND_MIQUELON
public static final CountryCode SUDAN
public static final CountryCode SURINAME
public static final CountryCode SVALBARD_AND_JAN_MAYEN_ISLANDS
public static final CountryCode SWAZILAND
public static final CountryCode SWEDEN
public static final CountryCode SWITZERLAND
public static final CountryCode SYRIAN_ARAB_REPUBLIC
public static final CountryCode TAIWAN
public static final CountryCode TAJIKISTAN
public static final CountryCode TANZANIA__UNITED_REPUBLIC_OF
public static final CountryCode THAILAND
public static final CountryCode TOGO
public static final CountryCode TOKELAU
public static final CountryCode TONGA
public static final CountryCode TRINIDAD_AND_TOBAGO
public static final CountryCode TUNISIA
public static final CountryCode TURKEY
public static final CountryCode TURKMENISTAN
public static final CountryCode TURKS_AND_CAICOS_ISLANDS
public static final CountryCode TUVALU
public static final CountryCode UGANDA
public static final CountryCode UKRAINE
public static final CountryCode UNITED_ARAB_EMIRATES
public static final CountryCode UNITED_KINGDOM
public static final CountryCode UNITED_STATES
public static final CountryCode UNITED_STATES_MINOR_OUTLYING_ISLANDS
public static final CountryCode URUGUAY
public static final CountryCode UZBEKISTAN
public static final CountryCode VANUATU
public static final CountryCode VATICAN_CITY_STATE__HOLY_SEE_
public static final CountryCode VENEZUELA
public static final CountryCode VIET_NAM
public static final CountryCode VIRGIN_ISLANDS__BRITISH_
public static final CountryCode VIRGIN_ISLANDS__US_
public static final CountryCode WALLIS_AND_FUTUNA_ISLANDS
public static final CountryCode WESTERN_SAHARA
public static final CountryCode YEMEN
public static final CountryCode YUGOSLAVIA
public static final CountryCode ZAMBIA
public static final CountryCode ZIMBABWE
public static CountryCode[] values()
for (CountryCode c : CountryCode.values()) System.out.println(c);
public static CountryCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getA2()
public String getA3()
public String getNumber()
public String toString()
toString
in class Enum<CountryCode>
public static CountryCode getDefault()
public static CountryCode getCountryCode(Locale locale)
public static CountryCode a2ToCode(String a2)
public static CountryCode a3ToCode(String a3)
public static CountryCode numberToCode(String number)
public String getDisplayString(Locale inLocale)
Localizable
getDisplayString
in interface Localizable
inLocale
- the string returned will be localized according to this value, if possibleCopyright © 2002–2015 SoftSmithy. All rights reserved.