Class ISO3166_1Alpha2CountryCode
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
com.nimbusds.openid.connect.sdk.assurance.claims.ISO3166_1AlphaCountryCode
com.nimbusds.openid.connect.sdk.assurance.claims.ISO3166_1Alpha2CountryCode
- All Implemented Interfaces:
Serializable,Comparable<Identifier>,net.minidev.json.JSONAware
ISO 3166-1 alpha-2 (two-letter) country code.
Includes constants for all 249 current officially assigned ISO 3166-1 alpha-2 codes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ISO3166_1Alpha2CountryCodeAndorrastatic final ISO3166_1Alpha2CountryCodeUnited Arab Emiratesstatic final ISO3166_1Alpha2CountryCodeAfghanistanstatic final ISO3166_1Alpha2CountryCodeAntigua and Barbudastatic final ISO3166_1Alpha2CountryCodeAnguillastatic final ISO3166_1Alpha2CountryCodeAlbaniastatic final ISO3166_1Alpha2CountryCodeArmeniastatic final ISO3166_1Alpha2CountryCodeAngolastatic final ISO3166_1Alpha2CountryCodeAntarcticastatic final ISO3166_1Alpha2CountryCodeArgentinastatic final ISO3166_1Alpha2CountryCodeAmerican Samoastatic final ISO3166_1Alpha2CountryCodeAustriastatic final ISO3166_1Alpha2CountryCodeAustraliastatic final ISO3166_1Alpha2CountryCodeArubastatic final ISO3166_1Alpha2CountryCodeAland Islandsstatic final ISO3166_1Alpha2CountryCodeAzerbaijanstatic final ISO3166_1Alpha2CountryCodeBosnia and Herzegovinastatic final ISO3166_1Alpha2CountryCodeBarbadosstatic final ISO3166_1Alpha2CountryCodeBangladeshstatic final ISO3166_1Alpha2CountryCodeBelgiumstatic final ISO3166_1Alpha2CountryCodeBurkina Fasostatic final ISO3166_1Alpha2CountryCodeBulgariastatic final ISO3166_1Alpha2CountryCodeBahrainstatic final ISO3166_1Alpha2CountryCodeBurundistatic final ISO3166_1Alpha2CountryCodeBeninstatic final ISO3166_1Alpha2CountryCodeSaint Barthélemystatic final ISO3166_1Alpha2CountryCodeBermudastatic final ISO3166_1Alpha2CountryCodeBrunei Darussalamstatic final ISO3166_1Alpha2CountryCodeBolivia (Plurinational State of)static final ISO3166_1Alpha2CountryCodeBonaire, Sint Eustatius and Sabastatic final ISO3166_1Alpha2CountryCodeBrazilstatic final ISO3166_1Alpha2CountryCodeBahamasstatic final ISO3166_1Alpha2CountryCodeBhutanstatic final ISO3166_1Alpha2CountryCodeBouvet Islandstatic final ISO3166_1Alpha2CountryCodeBotswanastatic final ISO3166_1Alpha2CountryCodeBelarusstatic final ISO3166_1Alpha2CountryCodeBelizestatic final ISO3166_1Alpha2CountryCodeCanadastatic final ISO3166_1Alpha2CountryCodeCocos (Keeling) Islandsstatic final ISO3166_1Alpha2CountryCodeCongo, Democratic Republic of thestatic final ISO3166_1Alpha2CountryCodeCentral African Republicstatic final ISO3166_1Alpha2CountryCodeCongostatic final ISO3166_1Alpha2CountryCodeSwitzerlandstatic final ISO3166_1Alpha2CountryCodeCôte d'Ivoirestatic final ISO3166_1Alpha2CountryCodeCook Islandsstatic final ISO3166_1Alpha2CountryCodeChilestatic final ISO3166_1Alpha2CountryCodeCameroonstatic final ISO3166_1Alpha2CountryCodeChinastatic final ISO3166_1Alpha2CountryCodeColombiastatic final ISO3166_1Alpha2CountryCodeCosta Ricastatic final ISO3166_1Alpha2CountryCodeCubastatic final ISO3166_1Alpha2CountryCodeCabo Verdestatic final ISO3166_1Alpha2CountryCodeCuraçaostatic final ISO3166_1Alpha2CountryCodeChristmas Islandstatic final ISO3166_1Alpha2CountryCodeCyprusstatic final ISO3166_1Alpha2CountryCodeCzechiastatic final ISO3166_1Alpha2CountryCodeGermanystatic final ISO3166_1Alpha2CountryCodeDjiboutistatic final ISO3166_1Alpha2CountryCodeDenmarkstatic final ISO3166_1Alpha2CountryCodeDominicastatic final ISO3166_1Alpha2CountryCodeDominican Republicstatic final ISO3166_1Alpha2CountryCodeAlgeriastatic final ISO3166_1Alpha2CountryCodeEcuadorstatic final ISO3166_1Alpha2CountryCodeEstoniastatic final ISO3166_1Alpha2CountryCodeEgyptstatic final ISO3166_1Alpha2CountryCodeWestern Saharastatic final ISO3166_1Alpha2CountryCodeEritreastatic final ISO3166_1Alpha2CountryCodeSpainstatic final ISO3166_1Alpha2CountryCodeEthiopiastatic final ISO3166_1Alpha2CountryCodeFinlandstatic final ISO3166_1Alpha2CountryCodeFijistatic final ISO3166_1Alpha2CountryCodeFalkland Islands (Malvinas)static final ISO3166_1Alpha2CountryCodeMicronesia (Federated States of)static final ISO3166_1Alpha2CountryCodeFaroe Islandsstatic final ISO3166_1Alpha2CountryCodeFrancestatic final ISO3166_1Alpha2CountryCodeGabonstatic final ISO3166_1Alpha2CountryCodeUnited Kingdom of Great Britain and Northern Irelandstatic final ISO3166_1Alpha2CountryCodeGrenadastatic final ISO3166_1Alpha2CountryCodeGeorgiastatic final ISO3166_1Alpha2CountryCodeFrench Guianastatic final ISO3166_1Alpha2CountryCodeGuernseystatic final ISO3166_1Alpha2CountryCodeGhanastatic final ISO3166_1Alpha2CountryCodeGibraltarstatic final ISO3166_1Alpha2CountryCodeGreenlandstatic final ISO3166_1Alpha2CountryCodeGambiastatic final ISO3166_1Alpha2CountryCodeGuineastatic final ISO3166_1Alpha2CountryCodeGuadeloupestatic final ISO3166_1Alpha2CountryCodeEquatorial Guineastatic final ISO3166_1Alpha2CountryCodeGreecestatic final ISO3166_1Alpha2CountryCodeSouth Georgia and the South Sandwich Islandsstatic final ISO3166_1Alpha2CountryCodeGuatemalastatic final ISO3166_1Alpha2CountryCodeGuamstatic final ISO3166_1Alpha2CountryCodeGuinea-Bissaustatic final ISO3166_1Alpha2CountryCodeGuyanastatic final ISO3166_1Alpha2CountryCodeHong Kongstatic final ISO3166_1Alpha2CountryCodeHeard Island and McDonald Islandsstatic final ISO3166_1Alpha2CountryCodeHondurasstatic final ISO3166_1Alpha2CountryCodeCroatiastatic final ISO3166_1Alpha2CountryCodeHaitistatic final ISO3166_1Alpha2CountryCodeHungarystatic final ISO3166_1Alpha2CountryCodeIndonesiastatic final ISO3166_1Alpha2CountryCodeIrelandstatic final ISO3166_1Alpha2CountryCodeIsraelstatic final ISO3166_1Alpha2CountryCodeIsle of Manstatic final ISO3166_1Alpha2CountryCodeIndiastatic final ISO3166_1Alpha2CountryCodeBritish Indian Ocean Territorystatic final ISO3166_1Alpha2CountryCodeIraqstatic final ISO3166_1Alpha2CountryCodeIran (Islamic Republic of)static final ISO3166_1Alpha2CountryCodeIcelandstatic final ISO3166_1Alpha2CountryCodeItalystatic final ISO3166_1Alpha2CountryCodeJerseystatic final ISO3166_1Alpha2CountryCodeJamaicastatic final ISO3166_1Alpha2CountryCodeJordanstatic final ISO3166_1Alpha2CountryCodeJapanstatic final ISO3166_1Alpha2CountryCodeKenyastatic final ISO3166_1Alpha2CountryCodeKyrgyzstanstatic final ISO3166_1Alpha2CountryCodeCambodiastatic final ISO3166_1Alpha2CountryCodeKiribatistatic final ISO3166_1Alpha2CountryCodeComorosstatic final ISO3166_1Alpha2CountryCodeSaint Kitts and Nevisstatic final ISO3166_1Alpha2CountryCodeKorea (Democratic People's Republic of)static final ISO3166_1Alpha2CountryCodeKorea, Republic ofstatic final ISO3166_1Alpha2CountryCodeKuwaitstatic final ISO3166_1Alpha2CountryCodeCayman Islandsstatic final ISO3166_1Alpha2CountryCodeKazakhstanstatic final ISO3166_1Alpha2CountryCodeLao People's Democratic Republicstatic final ISO3166_1Alpha2CountryCodeLebanonstatic final ISO3166_1Alpha2CountryCodeSaint Luciastatic final ISO3166_1Alpha2CountryCodeLiechtensteinstatic final ISO3166_1Alpha2CountryCodeSri Lankastatic final ISO3166_1Alpha2CountryCodeLiberiastatic final ISO3166_1Alpha2CountryCodeLesothostatic final ISO3166_1Alpha2CountryCodeLithuaniastatic final ISO3166_1Alpha2CountryCodeLuxembourgstatic final ISO3166_1Alpha2CountryCodeLatviastatic final ISO3166_1Alpha2CountryCodeLibyastatic final ISO3166_1Alpha2CountryCodeMoroccostatic final ISO3166_1Alpha2CountryCodeMonacostatic final ISO3166_1Alpha2CountryCodeMoldova, Republic ofstatic final ISO3166_1Alpha2CountryCodeMontenegrostatic final ISO3166_1Alpha2CountryCodeSaint Martin (French part)static final ISO3166_1Alpha2CountryCodeMadagascarstatic final ISO3166_1Alpha2CountryCodeMarshall Islandsstatic final ISO3166_1Alpha2CountryCodeNorth Macedoniastatic final ISO3166_1Alpha2CountryCodeMalistatic final ISO3166_1Alpha2CountryCodeMyanmarstatic final ISO3166_1Alpha2CountryCodeMongoliastatic final ISO3166_1Alpha2CountryCodeMacaostatic final ISO3166_1Alpha2CountryCodeNorthern Mariana Islandsstatic final ISO3166_1Alpha2CountryCodeMartiniquestatic final ISO3166_1Alpha2CountryCodeMauritaniastatic final ISO3166_1Alpha2CountryCodeMontserratstatic final ISO3166_1Alpha2CountryCodeMaltastatic final ISO3166_1Alpha2CountryCodeMauritiusstatic final ISO3166_1Alpha2CountryCodeMaldivesstatic final ISO3166_1Alpha2CountryCodeMalawistatic final ISO3166_1Alpha2CountryCodeMexicostatic final ISO3166_1Alpha2CountryCodeMalaysiastatic final ISO3166_1Alpha2CountryCodeMozambiquestatic final ISO3166_1Alpha2CountryCodeNamibiastatic final ISO3166_1Alpha2CountryCodeNew Caledoniastatic final ISO3166_1Alpha2CountryCodeNigerstatic final ISO3166_1Alpha2CountryCodeNorfolk Islandstatic final ISO3166_1Alpha2CountryCodeNigeriastatic final ISO3166_1Alpha2CountryCodeNicaraguastatic final ISO3166_1Alpha2CountryCodeNetherlandsstatic final ISO3166_1Alpha2CountryCodeNorwaystatic final ISO3166_1Alpha2CountryCodeNepalstatic final ISO3166_1Alpha2CountryCodeNaurustatic final ISO3166_1Alpha2CountryCodeNiuestatic final ISO3166_1Alpha2CountryCodeNew Zealandstatic final ISO3166_1Alpha2CountryCodeOmanstatic final ISO3166_1Alpha2CountryCodePanamastatic final ISO3166_1Alpha2CountryCodePerustatic final ISO3166_1Alpha2CountryCodeFrench Polynesiastatic final ISO3166_1Alpha2CountryCodePapua New Guineastatic final ISO3166_1Alpha2CountryCodePhilippinesstatic final ISO3166_1Alpha2CountryCodePakistanstatic final ISO3166_1Alpha2CountryCodePolandstatic final ISO3166_1Alpha2CountryCodeSaint Pierre and Miquelonstatic final ISO3166_1Alpha2CountryCodePitcairnstatic final ISO3166_1Alpha2CountryCodePuerto Ricostatic final ISO3166_1Alpha2CountryCodePalestine, State ofstatic final ISO3166_1Alpha2CountryCodePortugalstatic final ISO3166_1Alpha2CountryCodePalaustatic final ISO3166_1Alpha2CountryCodeParaguaystatic final ISO3166_1Alpha2CountryCodeQatarstatic final ISO3166_1Alpha2CountryCodeRéunionstatic final ISO3166_1Alpha2CountryCodeRomaniastatic final ISO3166_1Alpha2CountryCodeSerbiastatic final ISO3166_1Alpha2CountryCodeRussian Federationstatic final ISO3166_1Alpha2CountryCodeRwandastatic final ISO3166_1Alpha2CountryCodeSaudi Arabiastatic final ISO3166_1Alpha2CountryCodeSolomon Islandsstatic final ISO3166_1Alpha2CountryCodeSeychellesstatic final ISO3166_1Alpha2CountryCodeSudanstatic final ISO3166_1Alpha2CountryCodeSwedenstatic final ISO3166_1Alpha2CountryCodeSingaporestatic final ISO3166_1Alpha2CountryCodeSaint Helena, Ascension and Tristan da Cunhastatic final ISO3166_1Alpha2CountryCodeSloveniastatic final ISO3166_1Alpha2CountryCodeSvalbard and Jan Mayenstatic final ISO3166_1Alpha2CountryCodeSlovakiastatic final ISO3166_1Alpha2CountryCodeSierra Leonestatic final ISO3166_1Alpha2CountryCodeSan Marinostatic final ISO3166_1Alpha2CountryCodeSenegalstatic final ISO3166_1Alpha2CountryCodeSomaliastatic final ISO3166_1Alpha2CountryCodeSurinamestatic final ISO3166_1Alpha2CountryCodeSouth Sudanstatic final ISO3166_1Alpha2CountryCodeSao Tome and Principestatic final ISO3166_1Alpha2CountryCodeEl Salvadorstatic final ISO3166_1Alpha2CountryCodeSint Maarten (Dutch part)static final ISO3166_1Alpha2CountryCodeSyrian Arab Republicstatic final ISO3166_1Alpha2CountryCodeEswatinistatic final ISO3166_1Alpha2CountryCodeTurks and Caicos Islandsstatic final ISO3166_1Alpha2CountryCodeChadstatic final ISO3166_1Alpha2CountryCodeFrench Southern Territoriesstatic final ISO3166_1Alpha2CountryCodeTogostatic final ISO3166_1Alpha2CountryCodeThailandstatic final ISO3166_1Alpha2CountryCodeTajikistanstatic final ISO3166_1Alpha2CountryCodeTokelaustatic final ISO3166_1Alpha2CountryCodeTimor-Lestestatic final ISO3166_1Alpha2CountryCodeTurkmenistanstatic final ISO3166_1Alpha2CountryCodeTunisiastatic final ISO3166_1Alpha2CountryCodeTongastatic final ISO3166_1Alpha2CountryCodeTurkeystatic final ISO3166_1Alpha2CountryCodeTrinidad and Tobagostatic final ISO3166_1Alpha2CountryCodeTuvalustatic final ISO3166_1Alpha2CountryCodeTaiwan, Province of Chinastatic final ISO3166_1Alpha2CountryCodeTanzania, United Republic ofstatic final ISO3166_1Alpha2CountryCodeUkrainestatic final ISO3166_1Alpha2CountryCodeUgandastatic final ISO3166_1Alpha2CountryCodeUnited States Minor Outlying Islandsstatic final ISO3166_1Alpha2CountryCodeUnited States of Americastatic final ISO3166_1Alpha2CountryCodeUruguaystatic final ISO3166_1Alpha2CountryCodeUzbekistanstatic final ISO3166_1Alpha2CountryCodeHoly Seestatic final ISO3166_1Alpha2CountryCodeSaint Vincent and the Grenadinesstatic final ISO3166_1Alpha2CountryCodeVenezuela (Bolivarian Republic of)static final ISO3166_1Alpha2CountryCodeVirgin Islands (British)static final ISO3166_1Alpha2CountryCodeVirgin Islands (U.S.)static final ISO3166_1Alpha2CountryCodeViet Namstatic final ISO3166_1Alpha2CountryCodeVanuatustatic final ISO3166_1Alpha2CountryCodeWallis and Futunastatic final ISO3166_1Alpha2CountryCodeSamoastatic final ISO3166_1Alpha2CountryCodeYemenstatic final ISO3166_1Alpha2CountryCodeMayottestatic final ISO3166_1Alpha2CountryCodeSouth Africastatic final ISO3166_1Alpha2CountryCodeZambiastatic final ISO3166_1Alpha2CountryCodeZimbabweFields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom -
Constructor Summary
ConstructorsConstructorDescriptionISO3166_1Alpha2CountryCode(String value) Creates a new ISO 3166-1 alpha-2 country code. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the country name if available in theiso3166_1alpha2-codes.propertiesresource.static ISO3166_1Alpha2CountryCodeParses an ISO 3166-1 alpha-2 (two-letter) country code.Returns the matching alpha-3 country code.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
length, toISO3166_1Alpha2CountryCode, toISO3166_1Alpha3CountryCode, toISO3166_3CountryCodeMethods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Field Details
-
AD
Andorra -
AE
United Arab Emirates -
AF
Afghanistan -
AG
Antigua and Barbuda -
AI
Anguilla -
AL
Albania -
AM
Armenia -
AO
Angola -
AQ
Antarctica -
AR
Argentina -
AS
American Samoa -
AT
Austria -
AU
Australia -
AW
Aruba -
AX
Aland Islands -
AZ
Azerbaijan -
BA
Bosnia and Herzegovina -
BB
Barbados -
BD
Bangladesh -
BE
Belgium -
BF
Burkina Faso -
BG
Bulgaria -
BH
Bahrain -
BI
Burundi -
BJ
Benin -
BL
Saint Barthélemy -
BM
Bermuda -
BN
Brunei Darussalam -
BO
Bolivia (Plurinational State of) -
BQ
Bonaire, Sint Eustatius and Saba -
BR
Brazil -
BS
Bahamas -
BT
Bhutan -
BV
Bouvet Island -
BW
Botswana -
BY
Belarus -
BZ
Belize -
CA
Canada -
CC
Cocos (Keeling) Islands -
CD
Congo, Democratic Republic of the -
CF
Central African Republic -
CG
Congo -
CH
Switzerland -
CI
Côte d'Ivoire -
CK
Cook Islands -
CL
Chile -
CM
Cameroon -
CN
China -
CO
Colombia -
CR
Costa Rica -
CU
Cuba -
CV
Cabo Verde -
CW
Curaçao -
CX
Christmas Island -
CY
Cyprus -
CZ
Czechia -
DE
Germany -
DJ
Djibouti -
DK
Denmark -
DM
Dominica -
DO
Dominican Republic -
DZ
Algeria -
EC
Ecuador -
EE
Estonia -
EG
Egypt -
EH
Western Sahara -
ER
Eritrea -
ES
Spain -
ET
Ethiopia -
FI
Finland -
FJ
Fiji -
FK
Falkland Islands (Malvinas) -
FM
Micronesia (Federated States of) -
FO
Faroe Islands -
FR
France -
GA
Gabon -
GB
United Kingdom of Great Britain and Northern Ireland -
GD
Grenada -
GE
Georgia -
GF
French Guiana -
GG
Guernsey -
GH
Ghana -
GI
Gibraltar -
GL
Greenland -
GM
Gambia -
GN
Guinea -
GP
Guadeloupe -
GQ
Equatorial Guinea -
GR
Greece -
GS
South Georgia and the South Sandwich Islands -
GT
Guatemala -
GU
Guam -
GW
Guinea-Bissau -
GY
Guyana -
HK
Hong Kong -
HM
Heard Island and McDonald Islands -
HN
Honduras -
HR
Croatia -
HT
Haiti -
HU
Hungary -
ID
Indonesia -
IE
Ireland -
IL
Israel -
IM
Isle of Man -
IN
India -
IO
British Indian Ocean Territory -
IQ
Iraq -
IR
Iran (Islamic Republic of) -
IS
Iceland -
IT
Italy -
JE
Jersey -
JM
Jamaica -
JO
Jordan -
JP
Japan -
KE
Kenya -
KG
Kyrgyzstan -
KH
Cambodia -
KI
Kiribati -
KM
Comoros -
KN
Saint Kitts and Nevis -
KP
Korea (Democratic People's Republic of) -
KR
Korea, Republic of -
KW
Kuwait -
KY
Cayman Islands -
KZ
Kazakhstan -
LA
Lao People's Democratic Republic -
LB
Lebanon -
LC
Saint Lucia -
LI
Liechtenstein -
LK
Sri Lanka -
LR
Liberia -
LS
Lesotho -
LT
Lithuania -
LU
Luxembourg -
LV
Latvia -
LY
Libya -
MA
Morocco -
MC
Monaco -
MD
Moldova, Republic of -
ME
Montenegro -
MF
Saint Martin (French part) -
MG
Madagascar -
MH
Marshall Islands -
MK
North Macedonia -
ML
Mali -
MM
Myanmar -
MN
Mongolia -
MO
Macao -
MP
Northern Mariana Islands -
MQ
Martinique -
MR
Mauritania -
MS
Montserrat -
MT
Malta -
MU
Mauritius -
MV
Maldives -
MW
Malawi -
MX
Mexico -
MY
Malaysia -
MZ
Mozambique -
NA
Namibia -
NC
New Caledonia -
NE
Niger -
NF
Norfolk Island -
NG
Nigeria -
NI
Nicaragua -
NL
Netherlands -
NO
Norway -
NP
Nepal -
NR
Nauru -
NU
Niue -
NZ
New Zealand -
OM
Oman -
PA
Panama -
PE
Peru -
PF
French Polynesia -
PG
Papua New Guinea -
PH
Philippines -
PK
Pakistan -
PL
Poland -
PM
Saint Pierre and Miquelon -
PN
Pitcairn -
PR
Puerto Rico -
PS
Palestine, State of -
PT
Portugal -
PW
Palau -
PY
Paraguay -
QA
Qatar -
RE
Réunion -
RO
Romania -
RS
Serbia -
RU
Russian Federation -
RW
Rwanda -
SA
Saudi Arabia -
SB
Solomon Islands -
SC
Seychelles -
SD
Sudan -
SE
Sweden -
SG
Singapore -
SH
Saint Helena, Ascension and Tristan da Cunha -
SI
Slovenia -
SJ
Svalbard and Jan Mayen -
SK
Slovakia -
SL
Sierra Leone -
SM
San Marino -
SN
Senegal -
SO
Somalia -
SR
Suriname -
SS
South Sudan -
ST
Sao Tome and Principe -
SV
El Salvador -
SX
Sint Maarten (Dutch part) -
SY
Syrian Arab Republic -
SZ
Eswatini -
TC
Turks and Caicos Islands -
TD
Chad -
TF
French Southern Territories -
TG
Togo -
TH
Thailand -
TJ
Tajikistan -
TK
Tokelau -
TL
Timor-Leste -
TM
Turkmenistan -
TN
Tunisia -
TO
Tonga -
TR
Turkey -
TT
Trinidad and Tobago -
TV
Tuvalu -
TW
Taiwan, Province of China -
TZ
Tanzania, United Republic of -
UA
Ukraine -
UG
Uganda -
UM
United States Minor Outlying Islands -
US
United States of America -
UY
Uruguay -
UZ
Uzbekistan -
VA
Holy See -
VC
Saint Vincent and the Grenadines -
VE
Venezuela (Bolivarian Republic of) -
VG
Virgin Islands (British) -
VI
Virgin Islands (U.S.) -
VN
Viet Nam -
VU
Vanuatu -
WF
Wallis and Futuna -
WS
Samoa -
YE
Yemen -
YT
Mayotte -
ZA
South Africa -
ZM
Zambia -
ZW
Zimbabwe
-
-
Constructor Details
-
ISO3166_1Alpha2CountryCode
Creates a new ISO 3166-1 alpha-2 country code. Normalises the code to upper case.- Parameters:
value- The country code value, must be two-letter.
-
-
Method Details
-
toAlpha3CountryCode
Returns the matching alpha-3 country code. SeeISO3166_1AlphaCountryCodeMapper.- Returns:
- The matching alpha-3 country code,
nullif none.
-
getCountryName
Returns the country name if available in theiso3166_1alpha2-codes.propertiesresource.- Specified by:
getCountryNamein classISO3166_1AlphaCountryCode- Returns:
- The country name,
nullif not available.
-
equals
- Specified by:
equalsin classCountryCode
-
parse
Parses an ISO 3166-1 alpha-2 (two-letter) country code.- Parameters:
s- The string to parse. Must not benull.- Returns:
- The ISO 3166-1 alpha-2 (two-letter) country code.
- Throws:
ParseException- If parsing failed.
-