Package fr.marcwrobel.jbanking
Enum IsoCountry
- java.lang.Object
-
- java.lang.Enum<IsoCountry>
-
- fr.marcwrobel.jbanking.IsoCountry
-
- All Implemented Interfaces:
Serializable,Comparable<IsoCountry>
public enum IsoCountry extends Enum<IsoCountry>
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.
- Since:
- 1.0
- Author:
- Marc Wrobel
- See Also:
- ISO 3166 Country Codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADAndorra (a.k.a.AEThe United Arab Emirates.AFAfghanistan (a.k.a.AGAntigua and Barbuda.AIAnguilla.ALAlbania (a.k.a.AMArmenia (a.k.a.AOAngola (a.k.a the Republic of Angola).AQAntarctica.ARArgentina (a.k.a.ASAmerican Samoa.ATAustria (a.k.a.AUAustralia.AWAruba.AXÅland Islands.AZAzerbaijan (a.k.a the Republic of Azerbaijan).BABosnia and Herzegovina.BBBarbados.BDBangladesh (a.k.a.BEBelgium (a.k.a.BFBurkina Faso.BGBulgaria (a.k.a the Republic of Bulgaria).BHBahrain (a.k.a.BIBurundi (a.k.a.BJBenin (a.k.a.BLSaint Barthélemy.BMBermuda.BNBrunei Darussalam.BOBolivia (a.k.a.BQBonaire, Sint Eustatius and Saba.BRBrazil (a.k.a the Federative Republic of Brazil).BSThe Bahamas (a.k.a.BTBhutan (a.k.a.BVBouvet Island.BWBotswana (a.k.a.BYBelarus (a.k.a.BZBelize.CACanada.CCThe Cocos (Keeling) Islands.CDThe Democratic Republic of the Congo.CFThe Central African Republic.CGThe Congo (a.k.a.CHSwitzerland (a.k.a.CICôte d'Ivoire (a.k.a the Republic of Côte d'Ivoire).CKThe Cook Islands.CLChile (a.k.a.CMCameroon (a.k.a.CNChina (a.k.a.COColombia (a.k.a.CRCosta Rica (a.k.a.CUCuba (a.k.a.CVCabo Verde (a.k.a.CWCuraçao.CXChristmas Island.CYCyprus (a.k.a.CZCzechia (a.k.a.DEGermany (a.k.a.DJDjibouti (a.k.a.DKDenmark (a.k.a.DMDominica (a.k.a.DOThe Dominican Republic.DZAlgeria (a.k.a.ECEcuador (a.k.a.EEEstonia (a.k.a.EGEgypt (a.k.a.EHWestern Sahara (provisional name).EREritrea (a.k.a.ESSpain (a.k.a.ETEthiopia (a.k.a.FIFinland (a.k.a.FJFiji (a.k.a.FKThe Falkland Island (Malvinas).FMThe Federated States of Micronesia.FOThe Faroe Islands.FRFrance (a.k.a.GAGabon (a.k.a.GBThe United Kingdom of Great Britain and Northern Ireland (a.k.a.GDGrenada.GEGeorgia.GFFrench Guiana.GGGuernsey.GHGhana (a.k.a.GIGibraltar.GLGreenland.GMThe Gambia (a.k.a.GNGuinea (a.k.a.GPGuadeloupe.GQEquatorial Guinea (a.k.a.GRGreece (a.k.a.GSSouth Georgia and the South Sandwich Islands.GTGuatemala (a.k.a.GUGuam.GWGuinea-Bissau (a.k.a.GYGuyana (a.k.a.HKHong Kong (a.k.a.HMHeard Island and McDonald Islands.HNHonduras (a.k.a.HRCroatia (a.k.a.HTHaiti (a.k.a.HUHungary.IDIndonesia (a.k.a.IEIreland.ILIsrael (a.k.a.IMIsle of Man.INIndia (a.k.a.IOThe British Indian Ocean Territory.IQIraq (a.k.a.IRThe Islamic Republic of Iran.ISIceland (a.k.a.ITItaly (a.k.a.JEJersey.JMJamaica.JOJordan (a.k.a.JPJapan.KEKenya (a.k.a.KGKyrgyzstan (a.k.a.KHCambodia (a.k.a.KIKiribati (a.k.a.KMThe Comoros (a.k.a.KNSaint Kitts and Nevis.KPThe Democratic People's Republic of Korea (a.k.a.KRThe Republic of Korea (a.k.a.KWKuwait (a.k.a.KYThe Cayman Islands.KZKazakhstan (a.k.a.LAThe Lao People's Democratic Republic.LBLebanon (a.k.a.LCSaint Lucia.LILiechtenstein (a.k.a.LKSri Lanka (a.k.a.LRLiberia (a.k.a.LSLesotho (a.k.a.LTLithuania (a.k.a.LULuxembourg (a.k.a.LVLatvia (a.k.a.LYLibya (a.k.a.MAMorocco (a.k.a.MCMonaco (a.k.a.MDThe Republic of Moldova.MEMontenegro.MFSaint Martin (French part).MGMadagascar (a.k.a.MHThe Marshall Islands (a.k.a.MKNorth Macedonia (a.k.a.MLMali (a.k.a.MMMyanmar (a.k.a.MNMongolia.MOMacao (a.k.a Macao Special Administrative Region of China).MPThe Northern Mariana Islands (a.k.a.MQMartinique.MRMauritania (a.k.a.MSMontserrat.MTMalta (a.k.a.MUMauritius (a.k.a.MVMaldives (a.k.a.MWMalawi (a.k.a.MXMexico (a.k.a.MYMalaysia.MZMozambique (a.k.a.NANamibia (a.k.a.NCNew Caledonia.NEThe Niger (a.k.a.NFNorfolk Island.NGNigeria (a.k.a.NINicaragua (a.k.a.NLThe Netherlands (a.k.a.NONorway (a.k.a.NPNepal (a.k.a.NRNauru (a.k.a.NUNiue.NZNew Zealand.OMOman (a.k.a.PAPanama (a.k.a.PEPeru (a.k.a.PFFrench Polynesia.PGPapua New Guinea (a.k.a.PHThe Philippines (a.k.a.PKPakistan (a.k.a.PLPoland (a.k.a.PMSaint Pierre and Miquelon.PNPitcairn.PRPuerto Rico.PSThe State of Palestine.PTPortugal (a.k.a.PWPalau (a.k.a.PYParaguay (a.k.a.QAQatar (a.k.a.RERéunion.RORomania.RSSerbia (a.k.a.RUThe Russian Federation (a.k.a.RWRwanda (a.k.a.SASaudi Arabia (a.k.a.SBSolomon Islands.SCSeychelles (a.k.a.SDThe Sudan (a.k.a.SESweden (a.k.a.SGSingapore (a.k.a.SHSaint Helena, Ascension and Tristan da Cunha.SISlovenia (a.k.a.SJSvalbard and Jan Mayen.SKSlovakia (a.k.a.SLSierra Leone (a.k.a.SMSan Marino (a.k.a.SNSenegal (a.k.a.SOSomalia (a.k.a.SRSuriname (a.k.a.SSSouth Sudan (a.k.a.STSão Tomé and Príncipe (a.k.a.SVEl Salvador (a.k.a.SXSint Maarten (Dutch part).SYThe Syrian Arab Republic.SZEswatini (a.k.a.TCThe Turks and Caicos Islands.TDChad (a.k.a.TFThe French Southern Territories.TGTogo (a.k.a.THThailand (a.k.a.TJTajikistan (a.k.a.TKTokelau.TLTimor-Leste (a.k.a.TMTurkmenistan.TNTunisia (a.k.a.TOTonga (a.k.a.TRTurkey (a.k.a.TTTrinidad and Tobago (a.k.a.TVTuvalu.TWTaiwan (Province of China).TZThe United Republic of Tanzania.UAUkraine.UGUganda (a.k.a.UMThe United States Minor Outlying Islands.USThe United States of America.UYUruguay (a.k.a.UZUzbekistan (a.k.a.VAThe Holy See (a.k.a.VCSaint Vincent and the Grenadines.VEThe Bolivarian Republic of Venezuela.VGThe British Virgin Islands.VIThe U.S.VNViet Nam (a.k.a.VUVanuatu (a.k.a.WFWallis and Futuna (a.k.a.WSSamoa (a.k.a.XKKosovo.YEYemen (a.k.a.YTMayotte.ZASouth Africa (a.k.a.ZMZambia (a.k.a.ZWZimbabwe (a.k.a.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.StringgetAlpha2Code()Returns this country ISO 3166-1 alpha-2 code.StringgetAlpha3Code()Returns this country ISO 3166-1 alpha-3 code.Optional<IsoCountry>getDependency()Returns the country on which this country depends.Optional<Integer>getNumericCode()Returns this country ISO 3166-1 numeric code.booleanisIndependent()Whether this country is independent, according to the International Organization for Standardization (ISO).booleanisParticipatingTo(Agreement agreement)Check whether this country is participating in the givenAgreement.Set<Agreement>participations()static IsoCountryvalueOf(String name)Returns 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 Detail
-
AF
public static final IsoCountry AF
Afghanistan (a.k.a. the Islamic Republic of Afghanistan).- See Also:
- www.iso.org
-
AL
public static final IsoCountry AL
Albania (a.k.a. the Republic of Albania).- See Also:
- www.iso.org
-
DZ
public static final IsoCountry DZ
Algeria (a.k.a. the People's Democratic Republic of Algeria).- See Also:
- www.iso.org
-
AD
public static final IsoCountry AD
Andorra (a.k.a. the Principality of Andorra).- See Also:
- www.iso.org
-
AO
public static final IsoCountry AO
Angola (a.k.a the Republic of Angola).- See Also:
- www.iso.org
-
AQ
public static final IsoCountry AQ
Antarctica.- See Also:
- www.iso.org
-
AG
public static final IsoCountry AG
Antigua and Barbuda.- See Also:
- www.iso.org
-
AR
public static final IsoCountry AR
Argentina (a.k.a. the Argentine Republic).- See Also:
- www.iso.org
-
AM
public static final IsoCountry AM
Armenia (a.k.a. the Republic of Armenia).- See Also:
- www.iso.org
-
AU
public static final IsoCountry AU
Australia.- See Also:
- www.iso.org
-
CX
public static final IsoCountry CX
Christmas Island.- See Also:
- www.iso.org
-
CC
public static final IsoCountry CC
The Cocos (Keeling) Islands.- See Also:
- www.iso.org
-
HM
public static final IsoCountry HM
Heard Island and McDonald Islands.- See Also:
- www.iso.org
-
NF
public static final IsoCountry NF
Norfolk Island.- See Also:
- www.iso.org
-
AT
public static final IsoCountry AT
Austria (a.k.a. the Republic of Austria).- See Also:
- www.iso.org
-
AZ
public static final IsoCountry AZ
Azerbaijan (a.k.a the Republic of Azerbaijan).- See Also:
- www.iso.org
-
BS
public static final IsoCountry BS
The Bahamas (a.k.a. the Commonwealth of the Bahamas).- See Also:
- www.iso.org
-
BH
public static final IsoCountry BH
Bahrain (a.k.a. the Kingdom of Bahrain).- See Also:
- www.iso.org
-
BD
public static final IsoCountry BD
Bangladesh (a.k.a. the People's Republic of Bangladesh).- See Also:
- www.iso.org
-
BB
public static final IsoCountry BB
Barbados.- See Also:
- www.iso.org
-
BY
public static final IsoCountry BY
Belarus (a.k.a. the Republic of Belarus).- See Also:
- www.iso.org
-
BE
public static final IsoCountry BE
Belgium (a.k.a. the Kingdom of Belgium).- See Also:
- www.iso.org
-
BZ
public static final IsoCountry BZ
Belize.- See Also:
- www.iso.org
-
BJ
public static final IsoCountry BJ
Benin (a.k.a. the Republic of Benin).- See Also:
- www.iso.org
-
BT
public static final IsoCountry BT
Bhutan (a.k.a. the Kingdom of Bhutan).- See Also:
- www.iso.org
-
BO
public static final IsoCountry BO
Bolivia (a.k.a. the Plurinational State of Bolivia).- See Also:
- www.iso.org
-
BA
public static final IsoCountry BA
Bosnia and Herzegovina.- See Also:
- www.iso.org
-
BW
public static final IsoCountry BW
Botswana (a.k.a. the Republic of Botswana).- See Also:
- www.iso.org
-
BR
public static final IsoCountry BR
Brazil (a.k.a the Federative Republic of Brazil).- See Also:
- www.iso.org
-
BN
public static final IsoCountry BN
Brunei Darussalam.- See Also:
- www.iso.org
-
BG
public static final IsoCountry BG
Bulgaria (a.k.a the Republic of Bulgaria).- See Also:
- www.iso.org
-
BF
public static final IsoCountry BF
Burkina Faso.- See Also:
- www.iso.org
-
BI
public static final IsoCountry BI
Burundi (a.k.a. the Republic of Burundi).- See Also:
- www.iso.org
-
KH
public static final IsoCountry KH
Cambodia (a.k.a. the Kingdom of Cambodia).- See Also:
- www.iso.org
-
CM
public static final IsoCountry CM
Cameroon (a.k.a. the Republic of Cameroon).- See Also:
- www.iso.org
-
CA
public static final IsoCountry CA
Canada.- See Also:
- www.iso.org
-
CV
public static final IsoCountry CV
Cabo Verde (a.k.a. the Republic of Cabo Verde).- See Also:
- www.iso.org
-
CF
public static final IsoCountry CF
The Central African Republic.- See Also:
- www.iso.org
-
TD
public static final IsoCountry TD
Chad (a.k.a. the Republic of Chad).- See Also:
- www.iso.org
-
CL
public static final IsoCountry CL
Chile (a.k.a. the Republic of Chile).- See Also:
- www.iso.org
-
CN
public static final IsoCountry CN
China (a.k.a. the People's Republic of China).- See Also:
- www.iso.org
-
HK
public static final IsoCountry HK
Hong Kong (a.k.a. the Hong Kong Special Administrative Region of China).- See Also:
- www.iso.org
-
MO
public static final IsoCountry MO
Macao (a.k.a Macao Special Administrative Region of China).- See Also:
- www.iso.org
-
CO
public static final IsoCountry CO
Colombia (a.k.a. the Republic of Colombia).- See Also:
- www.iso.org
-
KM
public static final IsoCountry KM
The Comoros (a.k.a. the Union of the Comoros).- See Also:
- www.iso.org
-
CG
public static final IsoCountry CG
The Congo (a.k.a. the Republic of the Congo).- See Also:
- www.iso.org
-
CR
public static final IsoCountry CR
Costa Rica (a.k.a. the Republic of Costa Rica).- See Also:
- www.iso.org
-
CI
public static final IsoCountry CI
Côte d'Ivoire (a.k.a the Republic of Côte d'Ivoire).- See Also:
- www.iso.org
-
HR
public static final IsoCountry HR
Croatia (a.k.a. the Republic of Croatia).- See Also:
- www.iso.org
-
CU
public static final IsoCountry CU
Cuba (a.k.a. the Republic of Cuba).- See Also:
- www.iso.org
-
CY
public static final IsoCountry CY
Cyprus (a.k.a. the Republic of Cyprus).- See Also:
- www.iso.org
-
CZ
public static final IsoCountry CZ
Czechia (a.k.a. the Czech Republic).- See Also:
- www.iso.org
-
DK
public static final IsoCountry DK
Denmark (a.k.a. the Kingdom of Denmark).- See Also:
- www.iso.org
-
FO
public static final IsoCountry FO
The Faroe Islands.- See Also:
- www.iso.org
-
GL
public static final IsoCountry GL
Greenland.- See Also:
- www.iso.org
-
DJ
public static final IsoCountry DJ
Djibouti (a.k.a. the Republic of Djibouti).- See Also:
- www.iso.org
-
DM
public static final IsoCountry DM
Dominica (a.k.a. the Commonwealth of Dominica).- See Also:
- www.iso.org
-
DO
public static final IsoCountry DO
The Dominican Republic.- See Also:
- www.iso.org
-
EC
public static final IsoCountry EC
Ecuador (a.k.a. the Republic of Ecuador).- See Also:
- www.iso.org
-
EG
public static final IsoCountry EG
Egypt (a.k.a. the Arab Republic of Egypt).- See Also:
- www.iso.org
-
SV
public static final IsoCountry SV
El Salvador (a.k.a. the Republic of El Salvador).- See Also:
- www.iso.org
-
GQ
public static final IsoCountry GQ
Equatorial Guinea (a.k.a. the Republic of Equatorial Guinea).- See Also:
- www.iso.org
-
ER
public static final IsoCountry ER
Eritrea (a.k.a. the State of Eritrea).- See Also:
- www.iso.org
-
EE
public static final IsoCountry EE
Estonia (a.k.a. the Republic of Estonia).- See Also:
- www.iso.org
-
ET
public static final IsoCountry ET
Ethiopia (a.k.a. the Federal Democratic Republic of Ethiopia).- See Also:
- www.iso.org
-
FJ
public static final IsoCountry FJ
Fiji (a.k.a. the Republic of Fiji).- See Also:
- www.iso.org
-
FI
public static final IsoCountry FI
Finland (a.k.a. the Republic of Finland).- See Also:
- www.iso.org
-
AX
public static final IsoCountry AX
Åland Islands.- See Also:
- www.iso.org
-
FR
public static final IsoCountry FR
France (a.k.a. the French Republic).- See Also:
- www.iso.org
-
GF
public static final IsoCountry GF
French Guiana.- See Also:
- www.iso.org
-
PF
public static final IsoCountry PF
French Polynesia.- See Also:
- www.iso.org
-
TF
public static final IsoCountry TF
The French Southern Territories.- See Also:
- www.iso.org
-
GP
public static final IsoCountry GP
Guadeloupe.- See Also:
- www.iso.org
-
MQ
public static final IsoCountry MQ
Martinique.- See Also:
- www.iso.org
-
YT
public static final IsoCountry YT
Mayotte.- See Also:
- www.iso.org
-
NC
public static final IsoCountry NC
New Caledonia.- See Also:
- www.iso.org
-
RE
public static final IsoCountry RE
Réunion.- See Also:
- www.iso.org
-
BL
public static final IsoCountry BL
Saint Barthélemy.- See Also:
- www.iso.org
-
MF
public static final IsoCountry MF
Saint Martin (French part).- See Also:
- www.iso.org
-
PM
public static final IsoCountry PM
Saint Pierre and Miquelon.- See Also:
- www.iso.org
-
WF
public static final IsoCountry WF
Wallis and Futuna (a.k.a. Wallis and Futuna Islands).- See Also:
- www.iso.org
-
GA
public static final IsoCountry GA
Gabon (a.k.a. the Gabonese Republic).- See Also:
- www.iso.org
-
GM
public static final IsoCountry GM
The Gambia (a.k.a. the Republic of the Gambia).- See Also:
- www.iso.org
-
GE
public static final IsoCountry GE
Georgia.- See Also:
- www.iso.org
-
DE
public static final IsoCountry DE
Germany (a.k.a. the Federal Republic of Germany).- See Also:
- www.iso.org
-
GH
public static final IsoCountry GH
Ghana (a.k.a. the Republic of Ghana).- See Also:
- www.iso.org
-
GR
public static final IsoCountry GR
Greece (a.k.a. the Hellenic Republic).- See Also:
- www.iso.org
-
GD
public static final IsoCountry GD
Grenada.- See Also:
- www.iso.org
-
GT
public static final IsoCountry GT
Guatemala (a.k.a. the Republic of Guatemala).- See Also:
- www.iso.org
-
GN
public static final IsoCountry GN
Guinea (a.k.a. the Republic of Guinea).- See Also:
- www.iso.org
-
GW
public static final IsoCountry GW
Guinea-Bissau (a.k.a. the Republic of Guinea-Bissau).- See Also:
- www.iso.org
-
GY
public static final IsoCountry GY
Guyana (a.k.a. the Co-operative Republic of Guyana).- See Also:
- www.iso.org
-
HT
public static final IsoCountry HT
Haiti (a.k.a. the Republic of Haiti).- See Also:
- www.iso.org
-
HN
public static final IsoCountry HN
Honduras (a.k.a. the Republic of Honduras).- See Also:
- www.iso.org
-
HU
public static final IsoCountry HU
Hungary.- See Also:
- www.iso.org
-
IS
public static final IsoCountry IS
Iceland (a.k.a. the Republic of Iceland).- See Also:
- www.iso.org
-
IN
public static final IsoCountry IN
India (a.k.a. the Republic of India).- See Also:
- www.iso.org
-
ID
public static final IsoCountry ID
Indonesia (a.k.a. the Republic of Indonesia).- See Also:
- www.iso.org
-
IR
public static final IsoCountry IR
The Islamic Republic of Iran.- See Also:
- www.iso.org
-
IQ
public static final IsoCountry IQ
Iraq (a.k.a. the Republic of Iraq).- See Also:
- www.iso.org
-
IE
public static final IsoCountry IE
Ireland.- See Also:
- www.iso.org
-
IL
public static final IsoCountry IL
Israel (a.k.a. the State of Israel).- See Also:
- www.iso.org
-
IT
public static final IsoCountry IT
Italy (a.k.a. the Republic of Italy).- See Also:
- www.iso.org
-
JM
public static final IsoCountry JM
Jamaica.- See Also:
- www.iso.org
-
JP
public static final IsoCountry JP
Japan.- See Also:
- www.iso.org
-
JO
public static final IsoCountry JO
Jordan (a.k.a. the Hashemite Kingdom of Jordan).- See Also:
- www.iso.org
-
KZ
public static final IsoCountry KZ
Kazakhstan (a.k.a. the Republic of Kazakhstan).- See Also:
- www.iso.org
-
KE
public static final IsoCountry KE
Kenya (a.k.a. the Republic of Kenya).- See Also:
- www.iso.org
-
KI
public static final IsoCountry KI
Kiribati (a.k.a. the Republic of Kiribati).- See Also:
- www.iso.org
-
XK
public static final IsoCountry XK
Kosovo.Temporarily used by the European Commission, the IMF, and SWIFT.
- See Also:
- Wikipedia
-
KW
public static final IsoCountry KW
Kuwait (a.k.a. the State of Kuwait).- See Also:
- www.iso.org
-
KG
public static final IsoCountry KG
Kyrgyzstan (a.k.a. the Kyrgyz Republic).- See Also:
- www.iso.org
-
LA
public static final IsoCountry LA
The Lao People's Democratic Republic.- See Also:
- www.iso.org
-
LV
public static final IsoCountry LV
Latvia (a.k.a. the Republic of Latvia).- See Also:
- www.iso.org
-
LB
public static final IsoCountry LB
Lebanon (a.k.a. the Lebanese Republic).- See Also:
- www.iso.org
-
LS
public static final IsoCountry LS
Lesotho (a.k.a. the Kingdom of Lesotho).- See Also:
- www.iso.org
-
LR
public static final IsoCountry LR
Liberia (a.k.a. the Republic of Liberia).- See Also:
- www.iso.org
-
LY
public static final IsoCountry LY
Libya (a.k.a. the State of Libya).- See Also:
- www.iso.org
-
LI
public static final IsoCountry LI
Liechtenstein (a.k.a. the Principality of Liechtenstein).- See Also:
- www.iso.org
-
LT
public static final IsoCountry LT
Lithuania (a.k.a. the Republic of Lithuania).- See Also:
- www.iso.org
-
LU
public static final IsoCountry LU
Luxembourg (a.k.a. the Grand Duchy of Luxembourg).- See Also:
- www.iso.org
-
MK
public static final IsoCountry MK
North Macedonia (a.k.a. the Republic of North Macedonia).- See Also:
- www.iso.org
-
MG
public static final IsoCountry MG
Madagascar (a.k.a. the Republic of Madagascar).- See Also:
- www.iso.org
-
MW
public static final IsoCountry MW
Malawi (a.k.a. the Republic of Malawi).- See Also:
- www.iso.org
-
MY
public static final IsoCountry MY
Malaysia.- See Also:
- www.iso.org
-
MV
public static final IsoCountry MV
Maldives (a.k.a. the Republic of Maldives).- See Also:
- www.iso.org
-
ML
public static final IsoCountry ML
Mali (a.k.a. the Republic of Mali).- See Also:
- www.iso.org
-
MT
public static final IsoCountry MT
Malta (a.k.a. the Republic of Malta).- See Also:
- www.iso.org
-
MH
public static final IsoCountry MH
The Marshall Islands (a.k.a. the Republic of the Marshall Islands).- See Also:
- www.iso.org
-
MR
public static final IsoCountry MR
Mauritania (a.k.a. the Islamic Republic of Mauritania).- See Also:
- www.iso.org
-
MU
public static final IsoCountry MU
Mauritius (a.k.a. the Republic of Mauritius).- See Also:
- www.iso.org
-
MX
public static final IsoCountry MX
Mexico (a.k.a. the United Mexican States).- See Also:
- www.iso.org
-
FM
public static final IsoCountry FM
The Federated States of Micronesia.- See Also:
- www.iso.org
-
MD
public static final IsoCountry MD
The Republic of Moldova.- See Also:
- www.iso.org
-
MC
public static final IsoCountry MC
Monaco (a.k.a. the Principality of Monaco).- See Also:
- www.iso.org
-
MN
public static final IsoCountry MN
Mongolia.- See Also:
- www.iso.org
-
ME
public static final IsoCountry ME
Montenegro.- See Also:
- www.iso.org
-
MA
public static final IsoCountry MA
Morocco (a.k.a. the Kingdom of Morocco).- See Also:
- www.iso.org
-
MZ
public static final IsoCountry MZ
Mozambique (a.k.a. the Republic of Mozambique).- See Also:
- www.iso.org
-
MM
public static final IsoCountry MM
Myanmar (a.k.a. the Republic of the Union of Myanmar).- See Also:
- www.iso.org
-
NA
public static final IsoCountry NA
Namibia (a.k.a. the Republic of Namibia).- See Also:
- www.iso.org
-
NR
public static final IsoCountry NR
Nauru (a.k.a. the Republic of Nauru).- See Also:
- www.iso.org
-
NP
public static final IsoCountry NP
Nepal (a.k.a. the Federal Democratic Republic of Nepal).- See Also:
- www.iso.org
-
NL
public static final IsoCountry NL
The Netherlands (a.k.a. the Kingdom of the Netherlands).- See Also:
- www.iso.org
-
AW
public static final IsoCountry AW
Aruba.- See Also:
- www.iso.org
-
BQ
public static final IsoCountry BQ
Bonaire, Sint Eustatius and Saba.- See Also:
- www.iso.org
-
CW
public static final IsoCountry CW
Curaçao.- See Also:
- www.iso.org
-
SX
public static final IsoCountry SX
Sint Maarten (Dutch part).- See Also:
- www.iso.org
-
NZ
public static final IsoCountry NZ
New Zealand.- See Also:
- www.iso.org
-
CK
public static final IsoCountry CK
The Cook Islands.- See Also:
- www.iso.org
-
NU
public static final IsoCountry NU
Niue.- See Also:
- www.iso.org
-
TK
public static final IsoCountry TK
Tokelau.- See Also:
- www.iso.org
-
NI
public static final IsoCountry NI
Nicaragua (a.k.a. the Republic of Nicaragua).- See Also:
- www.iso.org
-
NE
public static final IsoCountry NE
The Niger (a.k.a. the Republic of the Niger).- See Also:
- www.iso.org
-
NG
public static final IsoCountry NG
Nigeria (a.k.a. the Federal Republic of Nigeria).- See Also:
- www.iso.org
-
KP
public static final IsoCountry KP
The Democratic People's Republic of Korea (a.k.a. North Korea).- See Also:
- www.iso.org
-
NO
public static final IsoCountry NO
Norway (a.k.a. the Kingdom of Norway).- See Also:
- www.iso.org
-
BV
public static final IsoCountry BV
Bouvet Island.- See Also:
- www.iso.org
-
SJ
public static final IsoCountry SJ
Svalbard and Jan Mayen.- See Also:
- www.iso.org
-
OM
public static final IsoCountry OM
Oman (a.k.a. the Sultanate of Oman).- See Also:
- www.iso.org
-
PK
public static final IsoCountry PK
Pakistan (a.k.a. the Islamic Republic of Pakistan).- See Also:
- www.iso.org
-
PW
public static final IsoCountry PW
Palau (a.k.a. the Republic of Palau).- See Also:
- www.iso.org
-
PS
public static final IsoCountry PS
The State of Palestine.- See Also:
- www.iso.org
-
PA
public static final IsoCountry PA
Panama (a.k.a. the Republic of Panama).- See Also:
- www.iso.org
-
PG
public static final IsoCountry PG
Papua New Guinea (a.k.a. the Independent State of Papua New Guinea).- See Also:
- www.iso.org
-
PY
public static final IsoCountry PY
Paraguay (a.k.a. the Republic of Paraguay).- See Also:
- www.iso.org
-
PE
public static final IsoCountry PE
Peru (a.k.a. the Republic of Peru).- See Also:
- www.iso.org
-
PH
public static final IsoCountry PH
The Philippines (a.k.a. the Republic of the Philippines).- See Also:
- www.iso.org
-
PL
public static final IsoCountry PL
Poland (a.k.a. the Republic of Poland).- See Also:
- www.iso.org
-
PT
public static final IsoCountry PT
Portugal (a.k.a. the Portuguese Republic).- See Also:
- www.iso.org
-
QA
public static final IsoCountry QA
Qatar (a.k.a. the State of Qatar).- See Also:
- www.iso.org
-
RO
public static final IsoCountry RO
Romania.- See Also:
- www.iso.org
-
RU
public static final IsoCountry RU
The Russian Federation (a.k.a. Russia).- See Also:
- www.iso.org
-
RW
public static final IsoCountry RW
Rwanda (a.k.a. the Republic of Rwanda).- See Also:
- www.iso.org
-
KN
public static final IsoCountry KN
Saint Kitts and Nevis.- See Also:
- www.iso.org
-
LC
public static final IsoCountry LC
Saint Lucia.- See Also:
- www.iso.org
-
VC
public static final IsoCountry VC
Saint Vincent and the Grenadines.- See Also:
- www.iso.org
-
WS
public static final IsoCountry WS
Samoa (a.k.a. the Independent State of Samoa).- See Also:
- www.iso.org
-
SM
public static final IsoCountry SM
San Marino (a.k.a. the Republic of San Marino).- See Also:
- www.iso.org
-
ST
public static final IsoCountry ST
São Tomé and Príncipe (a.k.a. the Democratic Republic of São Tomé and Príncipe).- See Also:
- www.iso.org
-
SA
public static final IsoCountry SA
Saudi Arabia (a.k.a. the Kingdom of Saudi Arabia).- See Also:
- www.iso.org
-
SN
public static final IsoCountry SN
Senegal (a.k.a. the Republic of Senegal).- See Also:
- www.iso.org
-
RS
public static final IsoCountry RS
Serbia (a.k.a. the Republic of Serbia).- See Also:
- www.iso.org
-
SC
public static final IsoCountry SC
Seychelles (a.k.a. the Republic of Seychelles).- See Also:
- www.iso.org
-
SL
public static final IsoCountry SL
Sierra Leone (a.k.a. the Republic of Sierra Leone).- See Also:
- www.iso.org
-
SG
public static final IsoCountry SG
Singapore (a.k.a. the Republic of Singapore).- See Also:
- www.iso.org
-
SK
public static final IsoCountry SK
Slovakia (a.k.a. the Slovak Republic).- See Also:
- www.iso.org
-
SI
public static final IsoCountry SI
Slovenia (a.k.a. the Republic of Slovenia).- See Also:
- www.iso.org
-
SB
public static final IsoCountry SB
Solomon Islands.- See Also:
- www.iso.org
-
SO
public static final IsoCountry SO
Somalia (a.k.a. the Federal Republic of Somalia).- See Also:
- www.iso.org
-
ZA
public static final IsoCountry ZA
South Africa (a.k.a. the Republic of South Africa).- See Also:
- www.iso.org
-
KR
public static final IsoCountry KR
The Republic of Korea (a.k.a. South Korea).- See Also:
- www.iso.org
-
SS
public static final IsoCountry SS
South Sudan (a.k.a. the Republic of South Sudan).- See Also:
- www.iso.org
-
ES
public static final IsoCountry ES
Spain (a.k.a. the Kingdom of Spain).- See Also:
- www.iso.org
-
LK
public static final IsoCountry LK
Sri Lanka (a.k.a. the Democratic Socialist Republic of Sri Lanka).- See Also:
- www.iso.org
-
SD
public static final IsoCountry SD
The Sudan (a.k.a. the Republic of the Sudan).- See Also:
- www.iso.org
-
SR
public static final IsoCountry SR
Suriname (a.k.a. the Republic of Suriname).- See Also:
- www.iso.org
-
SZ
public static final IsoCountry SZ
Eswatini (a.k.a. the Kingdom of Eswatini).- See Also:
- www.iso.org
-
SE
public static final IsoCountry SE
Sweden (a.k.a. the Kingdom of Sweden).- See Also:
- www.iso.org
-
CH
public static final IsoCountry CH
Switzerland (a.k.a. the Swiss Confederation).- See Also:
- www.iso.org
-
SY
public static final IsoCountry SY
The Syrian Arab Republic.- See Also:
- www.iso.org
-
TW
public static final IsoCountry TW
Taiwan (Province of China).- See Also:
- www.iso.org
-
TJ
public static final IsoCountry TJ
Tajikistan (a.k.a. the Republic of Tajikistan).- See Also:
- www.iso.org
-
TZ
public static final IsoCountry TZ
The United Republic of Tanzania.- See Also:
- www.iso.org
-
TH
public static final IsoCountry TH
Thailand (a.k.a. the Kingdom of Thailand).- See Also:
- www.iso.org
-
CD
public static final IsoCountry CD
The Democratic Republic of the Congo.- See Also:
- www.iso.org
-
TL
public static final IsoCountry TL
Timor-Leste (a.k.a. the Democratic Republic of Timor-Leste).- See Also:
- www.iso.org
-
TG
public static final IsoCountry TG
Togo (a.k.a. the Togolese Republic).- See Also:
- www.iso.org
-
TO
public static final IsoCountry TO
Tonga (a.k.a. the Kingdom of Tonga).- See Also:
- www.iso.org
-
TT
public static final IsoCountry TT
Trinidad and Tobago (a.k.a. the Republic of Trinidad and Tobago).- See Also:
- www.iso.org
-
TN
public static final IsoCountry TN
Tunisia (a.k.a. the Republic of Tunisia).- See Also:
- www.iso.org
-
TR
public static final IsoCountry TR
Turkey (a.k.a. the Republic of Turkey).- See Also:
- www.iso.org
-
TM
public static final IsoCountry TM
Turkmenistan.- See Also:
- www.iso.org
-
TV
public static final IsoCountry TV
Tuvalu.- See Also:
- www.iso.org
-
UG
public static final IsoCountry UG
Uganda (a.k.a. the Republic of Uganda).- See Also:
- www.iso.org
-
UA
public static final IsoCountry UA
Ukraine.- See Also:
- www.iso.org
-
AE
public static final IsoCountry AE
The United Arab Emirates.- See Also:
- www.iso.org
-
GB
public static final IsoCountry GB
The United Kingdom of Great Britain and Northern Ireland (a.k.a. the United Kingdom or Britain).- See Also:
- www.iso.org
-
AI
public static final IsoCountry AI
Anguilla.- See Also:
- www.iso.org
-
BM
public static final IsoCountry BM
Bermuda.- See Also:
- www.iso.org
-
IO
public static final IsoCountry IO
The British Indian Ocean Territory.- See Also:
- www.iso.org
-
VG
public static final IsoCountry VG
The British Virgin Islands.- See Also:
- www.iso.org
-
KY
public static final IsoCountry KY
The Cayman Islands.- See Also:
- www.iso.org
-
FK
public static final IsoCountry FK
The Falkland Island (Malvinas).- See Also:
- www.iso.org
-
GI
public static final IsoCountry GI
Gibraltar.- See Also:
- www.iso.org
-
GG
public static final IsoCountry GG
Guernsey.- See Also:
- www.iso.org
-
IM
public static final IsoCountry IM
Isle of Man.- See Also:
- www.iso.org
-
JE
public static final IsoCountry JE
Jersey.- See Also:
- www.iso.org
-
MS
public static final IsoCountry MS
Montserrat.- See Also:
- www.iso.org
-
PN
public static final IsoCountry PN
Pitcairn.- See Also:
- www.iso.org
-
SH
public static final IsoCountry SH
Saint Helena, Ascension and Tristan da Cunha.- See Also:
- www.iso.org
-
GS
public static final IsoCountry GS
South Georgia and the South Sandwich Islands.- See Also:
- www.iso.org
-
TC
public static final IsoCountry TC
The Turks and Caicos Islands.- See Also:
- www.iso.org
-
US
public static final IsoCountry US
The United States of America.- See Also:
- www.iso.org
-
AS
public static final IsoCountry AS
American Samoa.- See Also:
- www.iso.org
-
GU
public static final IsoCountry GU
Guam.- See Also:
- www.iso.org
-
MP
public static final IsoCountry MP
The Northern Mariana Islands (a.k.a. the Commonwealth of the Northern Mariana Islands).- See Also:
- www.iso.org
-
PR
public static final IsoCountry PR
Puerto Rico.- See Also:
- www.iso.org
-
UM
public static final IsoCountry UM
The United States Minor Outlying Islands.- See Also:
- www.iso.org
-
VI
public static final IsoCountry VI
The U.S. Virgin Islands (a.k.a. the Virgin Islands of the United States).- See Also:
- www.iso.org
-
UY
public static final IsoCountry UY
Uruguay (a.k.a. the Eastern Republic of Uruguay).- See Also:
- www.iso.org
-
UZ
public static final IsoCountry UZ
Uzbekistan (a.k.a. the Republic of Uzbekistan).- See Also:
- www.iso.org
-
VU
public static final IsoCountry VU
Vanuatu (a.k.a. the Republic of Vanuatu).- See Also:
- www.iso.org
-
VA
public static final IsoCountry VA
The Holy See (a.k.a. the Vatican City State).- See Also:
- www.iso.org
-
VE
public static final IsoCountry VE
The Bolivarian Republic of Venezuela.- See Also:
- www.iso.org
-
VN
public static final IsoCountry VN
Viet Nam (a.k.a. the Socialist Republic of Viet Nam).- See Also:
- www.iso.org
-
EH
public static final IsoCountry EH
Western Sahara (provisional name).- See Also:
- www.iso.org
-
YE
public static final IsoCountry YE
Yemen (a.k.a. the Republic of Yemen).- See Also:
- www.iso.org
-
ZM
public static final IsoCountry ZM
Zambia (a.k.a. the Republic of Zambia).- See Also:
- www.iso.org
-
ZW
public static final IsoCountry ZW
Zimbabwe (a.k.a. the Republic of Zimbabwe).- See Also:
- www.iso.org
-
-
Method Detail
-
values
public static IsoCountry[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IsoCountry c : IsoCountry.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IsoCountry valueOf(String name)
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
public String getAlpha2Code()
Returns this country ISO 3166-1 alpha-2 code.- Returns:
- a non-null and 2 characters length string.
- Since:
- 2.1.0
-
getAlpha3Code
public String getAlpha3Code()
Returns this country ISO 3166-1 alpha-3 code.- Returns:
- a non-null and 3 characters length string.
- Since:
- 2.1.0
-
getNumericCode
public Optional<Integer> 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
public Optional<IsoCountry> 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
public boolean isParticipatingTo(Agreement agreement)
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 is null- Since:
- 2.1.0
-
fromAlpha2Code
public static Optional<IsoCountry> fromAlpha2Code(String code)
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
public static Optional<IsoCountry> fromAlpha3Code(String code)
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
public static Optional<IsoCountry> fromNumericCode(int code)
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.
-
-