public enum Country extends Enum<Country>
An enumeration for all current ISO 3166-1 Alpha-2 and Alpha-3 country codes.
Formerly used codes are not included.
All unused user assigned codes (e.g. XX and QS) are mapped to the single enum USER_DEFINED.
Titles are taken from the ISO standard short name in all cases.
GBIF Regions are based on IPBES regions, also available as a CSV list.
The source for GBIF Regions is the participant entities in the GBIF Directory, which are synchronized with
Node
s in the Registry. They are also recorded here,
to provide regions for countries/territories that are not GBIF members.
The regions follow IPBES regions, except for Antarctic territories, as there was no IPBES report for these.
Modifier and Type | Class and Description |
---|---|
static class |
Country.IsoDeserializer
Deserializes the value from a 2-letter ISO format.
|
static class |
Country.IsoSerializer
Serializes the value in a 2-letter ISO format.
|
static class |
Country.TitleDeserializer
Deserializes the value from an English country title exactly as given by the enumeration.
|
static class |
Country.TitleSerializer
Serializes the value as the English country title.
|
Enum Constant and Description |
---|
AFGHANISTAN
Afghanistan.
|
ALAND_ISLANDS
Åland Islands.
|
ALBANIA
Albania.
|
ALGERIA
Algeria.
|
AMERICAN_SAMOA
American Samoa.
|
ANDORRA
Andorra.
|
ANGOLA
Angola.
|
ANGUILLA
Anguilla.
|
ANTARCTICA
Antarctica.
|
ANTIGUA_BARBUDA
Antigua and Barbuda.
|
ARGENTINA
Argentina.
|
ARMENIA
Armenia.
|
ARUBA
Aruba.
|
AUSTRALIA
Australia.
|
AUSTRIA
Austria.
|
AZERBAIJAN
Azerbaijan.
|
BAHAMAS
Bahamas.
|
BAHRAIN
Bahrain.
|
BANGLADESH
Bangladesh.
|
BARBADOS
Barbados.
|
BELARUS
Belarus.
|
BELGIUM
Belgium.
|
BELIZE
Belize.
|
BENIN
Benin.
|
BERMUDA
Bermuda.
|
BHUTAN
Bhutan.
|
BOLIVIA
Bolivia (Plurinational State of).
|
BONAIRE_SINT_EUSTATIUS_SABA
Bonaire, Sint Eustatius and Saba.
|
BOSNIA_HERZEGOVINA
Bosnia and Herzegovina.
|
BOTSWANA
Botswana.
|
BOUVET_ISLAND
Bouvet Island.
|
BRAZIL
Brazil.
|
BRITISH_INDIAN_OCEAN_TERRITORY
British Indian Ocean Territory.
|
BRUNEI_DARUSSALAM
Brunei Darussalam.
|
BULGARIA
Bulgaria.
|
BURKINA_FASO
Burkina Faso.
|
BURUNDI
Burundi.
|
CAMBODIA
Cambodia.
|
CAMEROON
Cameroon.
|
CANADA
Canada.
|
CAPE_VERDE
Cabo Verde.
|
CAYMAN_ISLANDS
Cayman Islands.
|
CENTRAL_AFRICAN_REPUBLIC
Central African Republic.
|
CHAD
Chad.
|
CHILE
Chile.
|
CHINA
China.
|
CHRISTMAS_ISLAND
Christmas Island.
|
COCOS_ISLANDS
Cocos (Keeling) Islands.
|
COLOMBIA
Colombia.
|
COMOROS
Comoros.
|
CONGO
Congo, Republic of the.
|
CONGO_DEMOCRATIC_REPUBLIC
Congo, Democratic Republic of the.
|
COOK_ISLANDS
Cook Islands.
|
COSTA_RICA
Costa Rica.
|
CÔTE_DIVOIRE
Côte d’Ivoire.
|
CROATIA
Croatia.
|
CUBA
Cuba.
|
CURAÇAO
Curaçao.
|
CYPRUS
Cyprus.
|
CZECH_REPUBLIC
Czechia.
|
DENMARK
Denmark.
|
DJIBOUTI
Djibouti.
|
DOMINICA
Dominica.
|
DOMINICAN_REPUBLIC
Dominican Republic.
|
ECUADOR
Ecuador.
|
EGYPT
Egypt.
|
EL_SALVADOR
El Salvador.
|
EQUATORIAL_GUINEA
Equatorial Guinea.
|
ERITREA
Eritrea.
|
ESTONIA
Estonia.
|
ETHIOPIA
Ethiopia.
|
FALKLAND_ISLANDS
Falkland Islands (Malvinas).
|
FAROE_ISLANDS
Faroe Islands.
|
FIJI
Fiji.
|
FINLAND
Finland.
|
FRANCE
France.
|
FRENCH_GUIANA
French Guiana.
|
FRENCH_POLYNESIA
French Polynesia.
|
FRENCH_SOUTHERN_TERRITORIES
French Southern Territories.
|
GABON
Gabon.
|
GAMBIA
Gambia.
|
GEORGIA
Georgia.
|
GERMANY
Germany.
|
GHANA
Ghana.
|
GIBRALTAR
Gibraltar.
|
GREECE
Greece.
|
GREENLAND
Greenland.
|
GRENADA
Grenada.
|
GUADELOUPE
Guadeloupe.
|
GUAM
Guam.
|
GUATEMALA
Guatemala.
|
GUERNSEY
Guernsey.
|
GUINEA
Guinea.
|
GUINEA_BISSAU
Guinea-Bissau.
|
GUYANA
Guyana.
|
HAITI
Haiti.
|
HEARD_MCDONALD_ISLANDS
Heard Island and McDonald Islands.
|
HONDURAS
Honduras.
|
HONG_KONG
Hong Kong.
|
HUNGARY
Hungary.
|
ICELAND
Iceland.
|
INDIA
India.
|
INDONESIA
Indonesia.
|
INTERNATIONAL_WATERS
Taken from UN/LOCODE
|
IRAN
Iran (Islamic Republic of).
|
IRAQ
Iraq.
|
IRELAND
Ireland.
|
ISLE_OF_MAN
Isle of Man.
|
ISRAEL
Israel.
|
ITALY
Italy.
|
JAMAICA
Jamaica.
|
JAPAN
Japan.
|
JERSEY
Jersey.
|
JORDAN
Jordan.
|
KAZAKHSTAN
Kazakhstan.
|
KENYA
Kenya.
|
KIRIBATI
Kiribati.
|
KOREA_NORTH
Korea (Democratic People’s Republic of).
|
KOREA_SOUTH
Korea, Republic of.
|
KOSOVO
Kosovo.
|
KUWAIT
Kuwait.
|
KYRGYZSTAN
Kyrgyzstan.
|
LAO
Lao People’s Democratic Republic.
|
LATVIA
Latvia.
|
LEBANON
Lebanon.
|
LESOTHO
Lesotho.
|
LIBERIA
Liberia.
|
LIBYA
Libya.
|
LIECHTENSTEIN
Liechtenstein.
|
LITHUANIA
Lithuania.
|
LUXEMBOURG
Luxembourg.
|
MACAO
Macao.
|
MACEDONIA
North Macedonia.
|
MADAGASCAR
Madagascar.
|
MALAWI
Malawi.
|
MALAYSIA
Malaysia.
|
MALDIVES
Maldives.
|
MALI
Mali.
|
MALTA
Malta.
|
MARSHALL_ISLANDS
Marshall Islands.
|
MARTINIQUE
Martinique.
|
MAURITANIA
Mauritania.
|
MAURITIUS
Mauritius.
|
MAYOTTE
Mayotte.
|
MEXICO
Mexico.
|
MICRONESIA
Micronesia (Federated States of).
|
MOLDOVA
Moldova, Republic of.
|
MONACO
Monaco.
|
MONGOLIA
Mongolia.
|
MONTENEGRO
Montenegro.
|
MONTSERRAT
Montserrat.
|
MOROCCO
Morocco.
|
MOZAMBIQUE
Mozambique.
|
MYANMAR
Myanmar.
|
NAMIBIA
Namibia.
|
NAURU
Nauru.
|
NEPAL
Nepal.
|
NETHERLANDS
Netherlands.
|
NEW_CALEDONIA
New Caledonia.
|
NEW_ZEALAND
New Zealand.
|
NICARAGUA
Nicaragua.
|
NIGER
Niger.
|
NIGERIA
Nigeria.
|
NIUE
Niue.
|
NORFOLK_ISLAND
Norfolk Island.
|
NORTHERN_MARIANA_ISLANDS
Northern Mariana Islands.
|
NORWAY
Norway.
|
OMAN
Oman.
|
PAKISTAN
Pakistan.
|
PALAU
Palau.
|
PALESTINIAN_TERRITORY
Palestine, State of.
|
PANAMA
Panama.
|
PAPUA_NEW_GUINEA
Papua New Guinea.
|
PARAGUAY
Paraguay.
|
PERU
Peru.
|
PHILIPPINES
Philippines.
|
PITCAIRN
Pitcairn.
|
POLAND
Poland.
|
PORTUGAL
Portugal.
|
PUERTO_RICO
Puerto Rico.
|
QATAR
Qatar.
|
RÉUNION
Réunion.
|
ROMANIA
Romania.
|
RUSSIAN_FEDERATION
Russian Federation.
|
RWANDA
Rwanda.
|
SAINT_BARTHÉLEMY
Saint Barthélemy.
|
SAINT_HELENA_ASCENSION_TRISTAN_DA_CUNHA
Saint Helena, Ascension and Tristan da Cunha.
|
SAINT_KITTS_NEVIS
Saint Kitts and Nevis.
|
SAINT_LUCIA
Saint Lucia.
|
SAINT_MARTIN_FRENCH
Saint Martin (French part).
|
SAINT_PIERRE_MIQUELON
Saint Pierre and Miquelon.
|
SAINT_VINCENT_GRENADINES
Saint Vincent and the Grenadines.
|
SAMOA
Samoa.
|
SAN_MARINO
San Marino.
|
SAO_TOME_PRINCIPE
Sao Tome and Principe.
|
SAUDI_ARABIA
Saudi Arabia.
|
SENEGAL
Senegal.
|
SERBIA
Serbia.
|
SEYCHELLES
Seychelles.
|
SIERRA_LEONE
Sierra Leone.
|
SINGAPORE
Singapore.
|
SINT_MAARTEN
Sint Maarten (Dutch part).
|
SLOVAKIA
Slovakia.
|
SLOVENIA
Slovenia.
|
SOLOMON_ISLANDS
Solomon Islands.
|
SOMALIA
Somalia.
|
SOUTH_AFRICA
South Africa.
|
SOUTH_GEORGIA_SANDWICH_ISLANDS
South Georgia and the South Sandwich Islands.
|
SOUTH_SUDAN
South Sudan.
|
SPAIN
Spain.
|
SRI_LANKA
Sri Lanka.
|
SUDAN
Sudan.
|
SURINAME
Suriname.
|
SVALBARD_JAN_MAYEN
Svalbard and Jan Mayen.
|
SWAZILAND
Swaziland.
|
SWEDEN
Sweden.
|
SWITZERLAND
Switzerland.
|
SYRIA
Syrian Arab Republic.
|
TAIWAN
Taiwan, Province of China.
|
TAJIKISTAN
Tajikistan.
|
TANZANIA
Tanzania, United Republic of.
|
THAILAND
Thailand.
|
TIMOR_LESTE
Timor-Leste.
|
TOGO
Togo.
|
TOKELAU
Tokelau.
|
TONGA
Tonga.
|
TRINIDAD_TOBAGO
Trinidad and Tobago.
|
TUNISIA
Tunisia.
|
TURKEY
Türkiye.
|
TURKMENISTAN
Turkmenistan.
|
TURKS_CAICOS_ISLANDS
Turks and Caicos Islands.
|
TUVALU
Tuvalu.
|
UGANDA
Uganda.
|
UKRAINE
Ukraine.
|
UNITED_ARAB_EMIRATES
United Arab Emirates.
|
UNITED_KINGDOM
United Kingdom of Great Britain and Northern Ireland.
|
UNITED_STATES
United States of America.
|
UNITED_STATES_OUTLYING_ISLANDS
United States Minor Outlying Islands.
|
UNKNOWN
Unknown or Invalid territory.
|
URUGUAY
Uruguay.
|
USER_DEFINED
Bucket for all user defined codes not managed by GBIF.
|
UZBEKISTAN
Uzbekistan.
|
VANUATU
Vanuatu.
|
VATICAN
Holy See.
|
VENEZUELA
Venezuela (Bolivarian Republic of).
|
VIETNAM
Viet Nam.
|
VIRGIN_ISLANDS
Virgin Islands, (U.S.).
|
VIRGIN_ISLANDS_BRITISH
Virgin Islands (British).
|
WALLIS_FUTUNA
Wallis and Futuna.
|
WESTERN_SAHARA
Western Sahara.
|
YEMEN
Yemen.
|
ZAMBIA
Zambia.
|
ZIMBABWE
Zimbabwe.
|
Modifier and Type | Field and Description |
---|---|
static Set<String> |
CUSTOM_CODES
A set of all 2- and 3-letter codes that are reserved by ISO for custom application specific usages.
|
static List<Country> |
OFFICIAL_COUNTRIES |
Modifier and Type | Method and Description |
---|---|
static Country |
fromIsoCode(String code) |
GbifRegion |
getGbifRegion() |
String |
getIso2LetterCode() |
String |
getIso3LetterCode() |
Integer |
getIsoNumericalCode() |
String |
getTitle() |
static boolean |
isCustomCode(String code) |
boolean |
isOfficial()
Note this includes Kosovo (XK).
|
static Country |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Country[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Country AFGHANISTAN
public static final Country ALAND_ISLANDS
public static final Country AMERICAN_SAMOA
public static final Country ANTARCTICA
public static final Country ANTIGUA_BARBUDA
public static final Country AZERBAIJAN
public static final Country BANGLADESH
public static final Country BONAIRE_SINT_EUSTATIUS_SABA
public static final Country BOSNIA_HERZEGOVINA
public static final Country BOUVET_ISLAND
public static final Country BRITISH_INDIAN_OCEAN_TERRITORY
public static final Country BRUNEI_DARUSSALAM
public static final Country BURKINA_FASO
public static final Country CAPE_VERDE
public static final Country CAYMAN_ISLANDS
public static final Country CENTRAL_AFRICAN_REPUBLIC
public static final Country CHRISTMAS_ISLAND
public static final Country COCOS_ISLANDS
public static final Country CONGO_DEMOCRATIC_REPUBLIC
public static final Country COOK_ISLANDS
public static final Country COSTA_RICA
public static final Country CÔTE_DIVOIRE
public static final Country CZECH_REPUBLIC
public static final Country DOMINICAN_REPUBLIC
public static final Country EL_SALVADOR
public static final Country EQUATORIAL_GUINEA
public static final Country FALKLAND_ISLANDS
public static final Country FAROE_ISLANDS
public static final Country FRENCH_GUIANA
public static final Country FRENCH_POLYNESIA
public static final Country FRENCH_SOUTHERN_TERRITORIES
public static final Country GUADELOUPE
public static final Country GUINEA_BISSAU
public static final Country HEARD_MCDONALD_ISLANDS
public static final Country ISLE_OF_MAN
public static final Country KAZAKHSTAN
public static final Country KOREA_NORTH
public static final Country KOREA_SOUTH
public static final Country KYRGYZSTAN
public static final Country LIECHTENSTEIN
public static final Country LUXEMBOURG
public static final Country MADAGASCAR
public static final Country MARSHALL_ISLANDS
public static final Country MARTINIQUE
public static final Country MAURITANIA
public static final Country MICRONESIA
public static final Country MONTENEGRO
public static final Country MONTSERRAT
public static final Country MOZAMBIQUE
public static final Country NETHERLANDS
public static final Country NEW_CALEDONIA
public static final Country NEW_ZEALAND
public static final Country NORFOLK_ISLAND
public static final Country NORTHERN_MARIANA_ISLANDS
public static final Country PALESTINIAN_TERRITORY
public static final Country PAPUA_NEW_GUINEA
public static final Country PHILIPPINES
public static final Country PUERTO_RICO
public static final Country RUSSIAN_FEDERATION
public static final Country SAINT_BARTHÉLEMY
public static final Country SAINT_HELENA_ASCENSION_TRISTAN_DA_CUNHA
public static final Country SAINT_KITTS_NEVIS
public static final Country SAINT_LUCIA
public static final Country SAINT_MARTIN_FRENCH
public static final Country SAINT_PIERRE_MIQUELON
public static final Country SAINT_VINCENT_GRENADINES
public static final Country SAN_MARINO
public static final Country SAO_TOME_PRINCIPE
public static final Country SAUDI_ARABIA
public static final Country SEYCHELLES
public static final Country SIERRA_LEONE
public static final Country SINT_MAARTEN
public static final Country SOLOMON_ISLANDS
public static final Country SOUTH_AFRICA
public static final Country SOUTH_GEORGIA_SANDWICH_ISLANDS
public static final Country SOUTH_SUDAN
public static final Country SVALBARD_JAN_MAYEN
public static final Country SWITZERLAND
public static final Country TAJIKISTAN
public static final Country TIMOR_LESTE
public static final Country TRINIDAD_TOBAGO
public static final Country TURKMENISTAN
public static final Country TURKS_CAICOS_ISLANDS
public static final Country UNITED_ARAB_EMIRATES
public static final Country UNITED_KINGDOM
public static final Country UNITED_STATES
public static final Country UNITED_STATES_OUTLYING_ISLANDS
public static final Country UZBEKISTAN
public static final Country VIRGIN_ISLANDS_BRITISH
public static final Country VIRGIN_ISLANDS
public static final Country WALLIS_FUTUNA
public static final Country WESTERN_SAHARA
public static final Country USER_DEFINED
public static final Country KOSOVO
public static final Country INTERNATIONAL_WATERS
public static final Set<String> CUSTOM_CODES
public static final List<Country> OFFICIAL_COUNTRIES
public static Country[] values()
for (Country c : Country.values()) System.out.println(c);
public static Country 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 static boolean isCustomCode(String code)
public static Country fromIsoCode(String code)
code
- the case-insensitive 2- or 3-letter codespublic String getTitle()
public String getIso2LetterCode()
public String getIso3LetterCode()
public Integer getIsoNumericalCode()
public GbifRegion getGbifRegion()
GbifRegion
associated with this Country
.public boolean isOfficial()
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.