Package fr.marcwrobel.jbanking
Enum IsoCountry
- All Implemented Interfaces:
Serializable,Comparable<IsoCountry>,java.lang.constant.Constable
The countries, dependent territories, and special areas of geographical interest having an
Officially assigned ISO 3166-1
code.
One exception has been made for Kosovo. Kosovo has a user-assigned code, XK, that is being used temporarily by the European Commission, the IMF, and SWIFT.
Note that enum entries are named after the ISO 3166-1 alpha-2 code. This choice has been made in version 3.0.0 of jbanking in order to :
- reduce breaking changes in future versions (names change more often than codes),
- make this enum easier to serialize (to JSON, in database...),
- prevent accidental duplicates.
Please be advised that this list is current as of 2020-08-03. An up-to-date list can be found on the International Organization for Standardization website.
Usage:
IsoCountry country = IsoCountry.fromAlpha2Code("FR").get();
Assertion.assertEquals("FRA", country.getAlpha3Code());
Assertion.assertEquals(250, country.getNumericCode());
Assertion.assertTrue(country.isIndependent());
Assertion.assertTrue(country.isParticipatingTo(EUROPEAN_ECONOMIC_AREA));
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAndorra (aka the Principality of Andorra).The United Arab Emirates.Afghanistan (aka the Islamic Republic of Afghanistan).Antigua and Barbuda.Anguilla.Albania (aka the Republic of Albania).Armenia (aka the Republic of Armenia).Angola (a.k.a the Republic of Angola).Antarctica.Argentina (aka the Argentine Republic).American Samoa.Austria (aka the Republic of Austria).Australia.Aruba.Åland Islands.Azerbaijan (a.k.a the Republic of Azerbaijan).Bosnia and Herzegovina.Barbados.Bangladesh (aka the People's Republic of Bangladesh).Belgium (aka the Kingdom of Belgium).Burkina Faso.Bulgaria (a.k.a the Republic of Bulgaria).Bahrain (aka the Kingdom of Bahrain).Burundi (aka the Republic of Burundi).Benin (aka the Republic of Benin).Saint Barthélemy.Bermuda.Brunei Darussalam.Bolivia (aka the Plurinational State of Bolivia).Bonaire, Sint Eustatius and Saba.Brazil (a.k.a the Federative Republic of Brazil).The Bahamas (aka the Commonwealth of the Bahamas).Bhutan (aka the Kingdom of Bhutan).Bouvet Island.Botswana (aka the Republic of Botswana).Belarus (aka the Republic of Belarus).Belize.Canada.The Cocos (Keeling) Islands.The Democratic Republic of the Congo.The Central African Republic.The Congo (aka the Republic of the Congo).Switzerland (aka the Swiss Confederation).Côte d'Ivoire (a.k.a the Republic of Côte d'Ivoire).The Cook Islands.Chile (aka the Republic of Chile).Cameroon (aka the Republic of Cameroon).China (aka the People's Republic of China).Colombia (aka the Republic of Colombia).Costa Rica (aka the Republic of Costa Rica).Cuba (aka the Republic of Cuba).Cabo Verde (aka the Republic of Cabo Verde).Curaçao.Christmas Island.Cyprus (aka the Republic of Cyprus).Czechia (aka the Czech Republic).Germany (aka the Federal Republic of Germany).Djibouti (aka the Republic of Djibouti).Denmark (aka the Kingdom of Denmark).Dominica (aka the Commonwealth of Dominica).The Dominican Republic.Algeria (aka the People's Democratic Republic of Algeria).Ecuador (aka the Republic of Ecuador).Estonia (aka the Republic of Estonia).Egypt (aka the Arab Republic of Egypt).Western Sahara (provisional name).Eritrea (aka the State of Eritrea).Spain (aka the Kingdom of Spain).Ethiopia (aka the Federal Democratic Republic of Ethiopia).Finland (aka the Republic of Finland).Fiji (aka the Republic of Fiji).The Falkland Island (Malvinas).The Federated States of Micronesia.The Faroe Islands.France (aka the French Republic).Gabon (aka the Gabonese Republic).The United Kingdom of Great Britain and Northern Ireland (aka the United Kingdom or Britain).Grenada.Georgia.French Guiana.Guernsey.Ghana (aka the Republic of Ghana).Gibraltar.Greenland.The Gambia (aka the Republic of the Gambia).Guinea (aka the Republic of Guinea).Guadeloupe.Equatorial Guinea (aka the Republic of Equatorial Guinea).Greece (aka the Hellenic Republic).South Georgia and the South Sandwich Islands.Guatemala (aka the Republic of Guatemala).Guam.Guinea-Bissau (aka the Republic of Guinea-Bissau).Guyana (aka the Co-operative Republic of Guyana).Hong Kong (aka the Hong Kong Special Administrative Region of China).Heard Island and McDonald Islands.Honduras (aka the Republic of Honduras).Croatia (aka the Republic of Croatia).Haiti (aka the Republic of Haiti).Hungary.Indonesia (aka the Republic of Indonesia).Ireland.Israel (aka the State of Israel).Isle of Man.India (aka the Republic of India).The British Indian Ocean Territory.Iraq (aka the Republic of Iraq).The Islamic Republic of Iran.Iceland (aka the Republic of Iceland).Italy (aka the Republic of Italy).Jersey.Jamaica.Jordan (aka the Hashemite Kingdom of Jordan).Japan.Kenya (aka the Republic of Kenya).Kyrgyzstan (aka the Kyrgyz Republic).Cambodia (aka the Kingdom of Cambodia).Kiribati (aka the Republic of Kiribati).The Comoros (aka the Union of the Comoros).Saint Kitts and Nevis.The Democratic People's Republic of Korea (aka North Korea).The Republic of Korea (aka South Korea).Kuwait (aka the State of Kuwait).The Cayman Islands.Kazakhstan (aka the Republic of Kazakhstan).The Lao People's Democratic Republic.Lebanon (aka the Lebanese Republic).Saint Lucia.Liechtenstein (aka the Principality of Liechtenstein).Sri Lanka (aka the Democratic Socialist Republic of Sri Lanka).Liberia (aka the Republic of Liberia).Lesotho (aka the Kingdom of Lesotho).Lithuania (aka the Republic of Lithuania).Luxembourg (aka the Grand Duchy of Luxembourg).Latvia (aka the Republic of Latvia).Libya (aka the State of Libya).Morocco (aka the Kingdom of Morocco).Monaco (aka the Principality of Monaco).The Republic of Moldova.Montenegro.Saint Martin (French part).Madagascar (aka the Republic of Madagascar).The Marshall Islands (aka the Republic of the Marshall Islands).North Macedonia (aka the Republic of North Macedonia).Mali (aka the Republic of Mali).Myanmar (aka the Republic of the Union of Myanmar).Mongolia.Macao (a.k.a Macao Special Administrative Region of China).The Northern Mariana Islands (aka the Commonwealth of the Northern Mariana Islands).Martinique.Mauritania (aka the Islamic Republic of Mauritania).Montserrat.Malta (aka the Republic of Malta).Mauritius (aka the Republic of Mauritius).Maldives (aka the Republic of Maldives).Malawi (aka the Republic of Malawi).Mexico (aka the United Mexican States).Malaysia.Mozambique (aka the Republic of Mozambique).Namibia (aka the Republic of Namibia).New Caledonia.The Niger (aka the Republic of the Niger).Norfolk Island.Nigeria (aka the Federal Republic of Nigeria).Nicaragua (aka the Republic of Nicaragua).The Netherlands (aka the Kingdom of the Netherlands).Norway (aka the Kingdom of Norway).Nepal (aka the Federal Democratic Republic of Nepal).Nauru (aka the Republic of Nauru).Niue.New Zealand.Oman (aka the Sultanate of Oman).Panama (aka the Republic of Panama).Peru (aka the Republic of Peru).French Polynesia.Papua New Guinea (aka the Independent State of Papua New Guinea).The Philippines (aka the Republic of the Philippines).Pakistan (aka the Islamic Republic of Pakistan).Poland (aka the Republic of Poland).Saint Pierre and Miquelon.Pitcairn.Puerto Rico.The State of Palestine.Portugal (aka the Portuguese Republic).Palau (aka the Republic of Palau).Paraguay (aka the Republic of Paraguay).Qatar (aka the State of Qatar).Réunion.Romania.Serbia (aka the Republic of Serbia).The Russian Federation (aka Russia).Rwanda (aka the Republic of Rwanda).Saudi Arabia (aka the Kingdom of Saudi Arabia).Solomon Islands.Seychelles (aka the Republic of Seychelles).The Sudan (aka the Republic of the Sudan).Sweden (aka the Kingdom of Sweden).Singapore (aka the Republic of Singapore).Saint Helena, Ascension and Tristan da Cunha.Slovenia (aka the Republic of Slovenia).Svalbard and Jan Mayen.Slovakia (aka the Slovak Republic).Sierra Leone (aka the Republic of Sierra Leone).San Marino (aka the Republic of San Marino).Senegal (aka the Republic of Senegal).Somalia (aka the Federal Republic of Somalia).Suriname (aka the Republic of Suriname).South Sudan (aka the Republic of South Sudan).São Tomé and Príncipe (aka the Democratic Republic of São Tomé and Príncipe).El Salvador (aka the Republic of El Salvador).Sint Maarten (Dutch part).The Syrian Arab Republic.Eswatini (aka the Kingdom of Eswatini).The Turks and Caicos Islands.Chad (aka the Republic of Chad).The French Southern Territories.Togo (aka the Togolese Republic).Thailand (aka the Kingdom of Thailand).Tajikistan (aka the Republic of Tajikistan).Tokelau.Timor-Leste (aka the Democratic Republic of Timor-Leste).Turkmenistan.Tunisia (aka the Republic of Tunisia).Tonga (aka the Kingdom of Tonga).Turkey (aka the Republic of Turkey).Trinidad and Tobago (aka the Republic of Trinidad and Tobago).Tuvalu.Taiwan (Province of China).The United Republic of Tanzania.Ukraine.Uganda (aka the Republic of Uganda).The United States Minor Outlying Islands.The United States of America.Uruguay (aka the Eastern Republic of Uruguay).Uzbekistan (aka the Republic of Uzbekistan).The Holy See (aka the Vatican City State).Saint Vincent and the Grenadines.The Bolivarian Republic of Venezuela.The British Virgin Islands.The US Virgin Islands (aka the Virgin Islands of the United States).Viet Nam (aka the Socialist Republic of Viet Nam).Vanuatu (aka the Republic of Vanuatu).Wallis and Futuna (aka Wallis and Futuna Islands).Samoa (aka the Independent State of Samoa).Kosovo.Yemen (aka the Republic of Yemen).Mayotte.South Africa (aka the Republic of South Africa).Zambia (aka the Republic of Zambia).Zimbabwe (aka the Republic of Zimbabwe). -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<IsoCountry>fromAlpha2Code(String code) Translate the given ISO 3166-1 alpha-2 code to an IsoCountry.static Optional<IsoCountry>fromAlpha3Code(String code) Translate the given ISO 3166-1 alpha-3 code to an IsoCountry.static Optional<IsoCountry>fromNumericCode(int code) Translate the given ISO 3166-1 numeric code to an IsoCountry.Returns this country ISO 3166-1 alpha-2 code.Returns this country ISO 3166-1 alpha-3 code.Returns the country on which this country depends.Returns this country ISO 3166-1 numeric code.booleanWhether this country is independent, according to the International Organization for Standardization (ISO).booleanisParticipatingTo(Agreement agreement) Check whether this country is participating in the givenAgreement.This country participations toeconomic agreements.static IsoCountryReturns the enum constant of this type with the specified name.static IsoCountry[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AF
Afghanistan (aka the Islamic Republic of Afghanistan).- See Also:
-
AL
Albania (aka the Republic of Albania).- See Also:
-
DZ
Algeria (aka the People's Democratic Republic of Algeria).- See Also:
-
AD
Andorra (aka the Principality of Andorra).- See Also:
-
AO
Angola (a.k.a the Republic of Angola).- See Also:
-
AQ
Antarctica.- See Also:
-
AG
Antigua and Barbuda.- See Also:
-
AR
Argentina (aka the Argentine Republic).- See Also:
-
AM
Armenia (aka the Republic of Armenia).- See Also:
-
AU
Australia.- See Also:
-
CX
Christmas Island.- See Also:
-
CC
The Cocos (Keeling) Islands.- See Also:
-
HM
Heard Island and McDonald Islands.- See Also:
-
NF
Norfolk Island.- See Also:
-
AT
Austria (aka the Republic of Austria).- See Also:
-
AZ
Azerbaijan (a.k.a the Republic of Azerbaijan).- See Also:
-
BS
The Bahamas (aka the Commonwealth of the Bahamas).- See Also:
-
BH
Bahrain (aka the Kingdom of Bahrain).- See Also:
-
BD
Bangladesh (aka the People's Republic of Bangladesh).- See Also:
-
BB
Barbados.- See Also:
-
BY
Belarus (aka the Republic of Belarus).- See Also:
-
BE
Belgium (aka the Kingdom of Belgium).- See Also:
-
BZ
Belize.- See Also:
-
BJ
Benin (aka the Republic of Benin).- See Also:
-
BT
Bhutan (aka the Kingdom of Bhutan).- See Also:
-
BO
Bolivia (aka the Plurinational State of Bolivia).- See Also:
-
BA
Bosnia and Herzegovina.- See Also:
-
BW
Botswana (aka the Republic of Botswana).- See Also:
-
BR
Brazil (a.k.a the Federative Republic of Brazil).- See Also:
-
BN
Brunei Darussalam.- See Also:
-
BG
Bulgaria (a.k.a the Republic of Bulgaria).- See Also:
-
BF
Burkina Faso.- See Also:
-
BI
Burundi (aka the Republic of Burundi).- See Also:
-
KH
Cambodia (aka the Kingdom of Cambodia).- See Also:
-
CM
Cameroon (aka the Republic of Cameroon).- See Also:
-
CA
Canada.- See Also:
-
CV
Cabo Verde (aka the Republic of Cabo Verde).- See Also:
-
CF
The Central African Republic.- See Also:
-
TD
Chad (aka the Republic of Chad).- See Also:
-
CL
Chile (aka the Republic of Chile).- See Also:
-
CN
China (aka the People's Republic of China).- See Also:
-
HK
Hong Kong (aka the Hong Kong Special Administrative Region of China).- See Also:
-
MO
Macao (a.k.a Macao Special Administrative Region of China).- See Also:
-
CO
Colombia (aka the Republic of Colombia).- See Also:
-
KM
The Comoros (aka the Union of the Comoros).- See Also:
-
CG
The Congo (aka the Republic of the Congo).- See Also:
-
CR
Costa Rica (aka the Republic of Costa Rica).- See Also:
-
CI
Côte d'Ivoire (a.k.a the Republic of Côte d'Ivoire).- See Also:
-
HR
Croatia (aka the Republic of Croatia).- See Also:
-
CU
Cuba (aka the Republic of Cuba).- See Also:
-
CY
Cyprus (aka the Republic of Cyprus).- See Also:
-
CZ
Czechia (aka the Czech Republic).- See Also:
-
DK
Denmark (aka the Kingdom of Denmark).- See Also:
-
FO
The Faroe Islands.- See Also:
-
GL
Greenland.- See Also:
-
DJ
Djibouti (aka the Republic of Djibouti).- See Also:
-
DM
Dominica (aka the Commonwealth of Dominica).- See Also:
-
DO
The Dominican Republic.- See Also:
-
EC
Ecuador (aka the Republic of Ecuador).- See Also:
-
EG
Egypt (aka the Arab Republic of Egypt).- See Also:
-
SV
El Salvador (aka the Republic of El Salvador).- See Also:
-
GQ
Equatorial Guinea (aka the Republic of Equatorial Guinea).- See Also:
-
ER
Eritrea (aka the State of Eritrea).- See Also:
-
EE
Estonia (aka the Republic of Estonia).- See Also:
-
ET
Ethiopia (aka the Federal Democratic Republic of Ethiopia).- See Also:
-
FJ
Fiji (aka the Republic of Fiji).- See Also:
-
FI
Finland (aka the Republic of Finland).- See Also:
-
AX
Åland Islands.- See Also:
-
FR
France (aka the French Republic).- See Also:
-
GF
French Guiana.- See Also:
-
PF
French Polynesia.- See Also:
-
TF
The French Southern Territories.- See Also:
-
GP
Guadeloupe.- See Also:
-
MQ
Martinique.- See Also:
-
YT
Mayotte.- See Also:
-
NC
New Caledonia.- See Also:
-
RE
Réunion.- See Also:
-
BL
Saint Barthélemy.- See Also:
-
MF
Saint Martin (French part).- See Also:
-
PM
Saint Pierre and Miquelon.- See Also:
-
WF
Wallis and Futuna (aka Wallis and Futuna Islands).- See Also:
-
GA
Gabon (aka the Gabonese Republic).- See Also:
-
GM
The Gambia (aka the Republic of the Gambia).- See Also:
-
GE
Georgia.- See Also:
-
DE
Germany (aka the Federal Republic of Germany).- See Also:
-
GH
Ghana (aka the Republic of Ghana).- See Also:
-
GR
Greece (aka the Hellenic Republic).- See Also:
-
GD
Grenada.- See Also:
-
GT
Guatemala (aka the Republic of Guatemala).- See Also:
-
GN
Guinea (aka the Republic of Guinea).- See Also:
-
GW
Guinea-Bissau (aka the Republic of Guinea-Bissau).- See Also:
-
GY
Guyana (aka the Co-operative Republic of Guyana).- See Also:
-
HT
Haiti (aka the Republic of Haiti).- See Also:
-
HN
Honduras (aka the Republic of Honduras).- See Also:
-
HU
Hungary.- See Also:
-
IS
Iceland (aka the Republic of Iceland).- See Also:
-
IN
India (aka the Republic of India).- See Also:
-
ID
Indonesia (aka the Republic of Indonesia).- See Also:
-
IR
The Islamic Republic of Iran.- See Also:
-
IQ
Iraq (aka the Republic of Iraq).- See Also:
-
IE
Ireland.- See Also:
-
IL
Israel (aka the State of Israel).- See Also:
-
IT
Italy (aka the Republic of Italy).- See Also:
-
JM
Jamaica.- See Also:
-
JP
Japan.- See Also:
-
JO
Jordan (aka the Hashemite Kingdom of Jordan).- See Also:
-
KZ
Kazakhstan (aka the Republic of Kazakhstan).- See Also:
-
KE
Kenya (aka the Republic of Kenya).- See Also:
-
KI
Kiribati (aka the Republic of Kiribati).- See Also:
-
XK
Kosovo.Temporarily used by the European Commission, the IMF, and SWIFT.
- See Also:
-
KW
Kuwait (aka the State of Kuwait).- See Also:
-
KG
Kyrgyzstan (aka the Kyrgyz Republic).- See Also:
-
LA
The Lao People's Democratic Republic.- See Also:
-
LV
Latvia (aka the Republic of Latvia).- See Also:
-
LB
Lebanon (aka the Lebanese Republic).- See Also:
-
LS
Lesotho (aka the Kingdom of Lesotho).- See Also:
-
LR
Liberia (aka the Republic of Liberia).- See Also:
-
LY
Libya (aka the State of Libya).- See Also:
-
LI
Liechtenstein (aka the Principality of Liechtenstein).- See Also:
-
LT
Lithuania (aka the Republic of Lithuania).- See Also:
-
LU
Luxembourg (aka the Grand Duchy of Luxembourg).- See Also:
-
MK
North Macedonia (aka the Republic of North Macedonia).- See Also:
-
MG
Madagascar (aka the Republic of Madagascar).- See Also:
-
MW
Malawi (aka the Republic of Malawi).- See Also:
-
MY
Malaysia.- See Also:
-
MV
Maldives (aka the Republic of Maldives).- See Also:
-
ML
Mali (aka the Republic of Mali).- See Also:
-
MT
Malta (aka the Republic of Malta).- See Also:
-
MH
The Marshall Islands (aka the Republic of the Marshall Islands).- See Also:
-
MR
Mauritania (aka the Islamic Republic of Mauritania).- See Also:
-
MU
Mauritius (aka the Republic of Mauritius).- See Also:
-
MX
Mexico (aka the United Mexican States).- See Also:
-
FM
The Federated States of Micronesia.- See Also:
-
MD
The Republic of Moldova.- See Also:
-
MC
Monaco (aka the Principality of Monaco).- See Also:
-
MN
Mongolia.- See Also:
-
ME
Montenegro.- See Also:
-
MA
Morocco (aka the Kingdom of Morocco).- See Also:
-
MZ
Mozambique (aka the Republic of Mozambique).- See Also:
-
MM
Myanmar (aka the Republic of the Union of Myanmar).- See Also:
-
NA
Namibia (aka the Republic of Namibia).- See Also:
-
NR
Nauru (aka the Republic of Nauru).- See Also:
-
NP
Nepal (aka the Federal Democratic Republic of Nepal).- See Also:
-
NL
The Netherlands (aka the Kingdom of the Netherlands).- See Also:
-
AW
Aruba.- See Also:
-
BQ
Bonaire, Sint Eustatius and Saba.- See Also:
-
CW
Curaçao.- See Also:
-
SX
Sint Maarten (Dutch part).- See Also:
-
NZ
New Zealand.- See Also:
-
CK
The Cook Islands.- See Also:
-
NU
Niue.- See Also:
-
TK
Tokelau.- See Also:
-
NI
Nicaragua (aka the Republic of Nicaragua).- See Also:
-
NE
The Niger (aka the Republic of the Niger).- See Also:
-
NG
Nigeria (aka the Federal Republic of Nigeria).- See Also:
-
KP
The Democratic People's Republic of Korea (aka North Korea).- See Also:
-
NO
Norway (aka the Kingdom of Norway).- See Also:
-
BV
Bouvet Island.- See Also:
-
SJ
Svalbard and Jan Mayen.- See Also:
-
OM
Oman (aka the Sultanate of Oman).- See Also:
-
PK
Pakistan (aka the Islamic Republic of Pakistan).- See Also:
-
PW
Palau (aka the Republic of Palau).- See Also:
-
PS
The State of Palestine.- See Also:
-
PA
Panama (aka the Republic of Panama).- See Also:
-
PG
Papua New Guinea (aka the Independent State of Papua New Guinea).- See Also:
-
PY
Paraguay (aka the Republic of Paraguay).- See Also:
-
PE
Peru (aka the Republic of Peru).- See Also:
-
PH
The Philippines (aka the Republic of the Philippines).- See Also:
-
PL
Poland (aka the Republic of Poland).- See Also:
-
PT
Portugal (aka the Portuguese Republic).- See Also:
-
QA
Qatar (aka the State of Qatar).- See Also:
-
RO
Romania.- See Also:
-
RU
The Russian Federation (aka Russia).- See Also:
-
RW
Rwanda (aka the Republic of Rwanda).- See Also:
-
KN
Saint Kitts and Nevis.- See Also:
-
LC
Saint Lucia.- See Also:
-
VC
Saint Vincent and the Grenadines.- See Also:
-
WS
Samoa (aka the Independent State of Samoa).- See Also:
-
SM
San Marino (aka the Republic of San Marino).- See Also:
-
ST
São Tomé and Príncipe (aka the Democratic Republic of São Tomé and Príncipe).- See Also:
-
SA
Saudi Arabia (aka the Kingdom of Saudi Arabia).- See Also:
-
SN
Senegal (aka the Republic of Senegal).- See Also:
-
RS
Serbia (aka the Republic of Serbia).- See Also:
-
SC
Seychelles (aka the Republic of Seychelles).- See Also:
-
SL
Sierra Leone (aka the Republic of Sierra Leone).- See Also:
-
SG
Singapore (aka the Republic of Singapore).- See Also:
-
SK
Slovakia (aka the Slovak Republic).- See Also:
-
SI
Slovenia (aka the Republic of Slovenia).- See Also:
-
SB
Solomon Islands.- See Also:
-
SO
Somalia (aka the Federal Republic of Somalia).- See Also:
-
ZA
South Africa (aka the Republic of South Africa).- See Also:
-
KR
The Republic of Korea (aka South Korea).- See Also:
-
SS
South Sudan (aka the Republic of South Sudan).- See Also:
-
ES
Spain (aka the Kingdom of Spain).- See Also:
-
LK
Sri Lanka (aka the Democratic Socialist Republic of Sri Lanka).- See Also:
-
SD
The Sudan (aka the Republic of the Sudan).- See Also:
-
SR
Suriname (aka the Republic of Suriname).- See Also:
-
SZ
Eswatini (aka the Kingdom of Eswatini).- See Also:
-
SE
Sweden (aka the Kingdom of Sweden).- See Also:
-
CH
Switzerland (aka the Swiss Confederation).- See Also:
-
SY
The Syrian Arab Republic.- See Also:
-
TW
Taiwan (Province of China).- See Also:
-
TJ
Tajikistan (aka the Republic of Tajikistan).- See Also:
-
TZ
The United Republic of Tanzania.- See Also:
-
TH
Thailand (aka the Kingdom of Thailand).- See Also:
-
CD
The Democratic Republic of the Congo.- See Also:
-
TL
Timor-Leste (aka the Democratic Republic of Timor-Leste).- See Also:
-
TG
Togo (aka the Togolese Republic).- See Also:
-
TO
Tonga (aka the Kingdom of Tonga).- See Also:
-
TT
Trinidad and Tobago (aka the Republic of Trinidad and Tobago).- See Also:
-
TN
Tunisia (aka the Republic of Tunisia).- See Also:
-
TR
Turkey (aka the Republic of Turkey).- See Also:
-
TM
Turkmenistan.- See Also:
-
TV
Tuvalu.- See Also:
-
UG
Uganda (aka the Republic of Uganda).- See Also:
-
UA
Ukraine.- See Also:
-
AE
The United Arab Emirates.- See Also:
-
GB
The United Kingdom of Great Britain and Northern Ireland (aka the United Kingdom or Britain).- See Also:
-
AI
Anguilla.- See Also:
-
BM
Bermuda.- See Also:
-
IO
The British Indian Ocean Territory.- See Also:
-
VG
The British Virgin Islands.- See Also:
-
KY
The Cayman Islands.- See Also:
-
FK
The Falkland Island (Malvinas).- See Also:
-
GI
Gibraltar.- See Also:
-
GG
Guernsey.- See Also:
-
IM
Isle of Man.- See Also:
-
JE
Jersey.- See Also:
-
MS
Montserrat.- See Also:
-
PN
Pitcairn.- See Also:
-
SH
Saint Helena, Ascension and Tristan da Cunha.- See Also:
-
GS
South Georgia and the South Sandwich Islands.- See Also:
-
TC
The Turks and Caicos Islands.- See Also:
-
US
The United States of America.- See Also:
-
AS
American Samoa.- See Also:
-
GU
Guam.- See Also:
-
MP
The Northern Mariana Islands (aka the Commonwealth of the Northern Mariana Islands).- See Also:
-
PR
Puerto Rico.- See Also:
-
UM
The United States Minor Outlying Islands.- See Also:
-
VI
The US Virgin Islands (aka the Virgin Islands of the United States).- See Also:
-
UY
Uruguay (aka the Eastern Republic of Uruguay).- See Also:
-
UZ
Uzbekistan (aka the Republic of Uzbekistan).- See Also:
-
VU
Vanuatu (aka the Republic of Vanuatu).- See Also:
-
VA
The Holy See (aka the Vatican City State).- See Also:
-
VE
The Bolivarian Republic of Venezuela.- See Also:
-
VN
Viet Nam (aka the Socialist Republic of Viet Nam).- See Also:
-
EH
Western Sahara (provisional name).- See Also:
-
YE
Yemen (aka the Republic of Yemen).- See Also:
-
ZM
Zambia (aka the Republic of Zambia).- See Also:
-
ZW
Zimbabwe (aka the Republic of Zimbabwe).- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getAlpha2Code
Returns this country ISO 3166-1 alpha-2 code.- Returns:
- a non-null and 2 characters length string.
- Since:
- 2.1.0
-
getAlpha3Code
Returns this country ISO 3166-1 alpha-3 code.- Returns:
- a non-null and 3 characters length string.
- Since:
- 2.1.0
-
getNumericCode
Returns this country ISO 3166-1 numeric code.- Returns:
- a positive integer, or
Optional.empty()if there is no code for the country (user-assigned may not have a numeric code). - Since:
- 2.1.0
-
isIndependent
public boolean isIndependent()Whether this country is independent, according to the International Organization for Standardization (ISO).- Returns:
trueif this country is independent,falseotherwise.- Since:
- 2.1.0
-
getDependency
Returns the country on which this country depends.Note that the dependency link between two countries :
- is based on information provided by the International Organization for Standardization (ISO),
- may be unspecified, mainly for political reasons (
AQ,PS,TW,EH), - can take many forms : free association, territory, special administrative region... (this is outside the scope of jbanking)
- Returns:
- an
IsoCountryencapsulated in anOptional, orOptional.empty() - Since:
- 2.1.0
-
isParticipatingTo
Check whether this country is participating in the givenAgreement.- Parameters:
agreement- a non-nullAgreement- Returns:
trueif this country is participating in the givenAgreement,falseotherwise- Throws:
IllegalArgumentException- if agreement isnull- Since:
- 2.1.0
-
participations
This country participations toeconomic agreements.- Returns:
- a non-null set
- Since:
- 2.1.0
-
fromAlpha2Code
Translate the given ISO 3166-1 alpha-2 code to an IsoCountry.This method is not case-sensitive.
- Parameters:
code- A string (nullaccepted).- Returns:
- the country having the given ISO 3166-1 alpha-2 code, or
Optional#empty.
-
fromAlpha3Code
Translate the given ISO 3166-1 alpha-3 code to an IsoCountry.This method is not case-sensitive.
- Parameters:
code- A string (nullaccepted).- Returns:
- the country having the given ISO 3166-1 alpha-3 code, or
Optional#empty.
-
fromNumericCode
Translate the given ISO 3166-1 numeric code to an IsoCountry.- Parameters:
code- A string (nullaccepted).- Returns:
- the country having the given ISO 3166-1 alpha-3 code, or
Optional#empty.
-