Package com.arakelian.core.enums
Enum IsoCountryCode
- java.lang.Object
-
- java.lang.Enum<IsoCountryCode>
-
- com.arakelian.core.enums.IsoCountryCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IsoCountryCode>
public enum IsoCountryCode extends java.lang.Enum<IsoCountryCode>
Two character ISO 3166-1 country codes, along with a friendly label, and two boolean flags. The first boolean flag indicates if the country is part of the EU, and the second boolean flag indicates if they use the Euro. Note: The country names that are embedded in this enumeration don't "have" to be the ones displayed to an end user. They are included here primarily as internal display purposes as well as country detection. For postal code patterns, see: http://i18napis.appspot.com/address/data/<country code>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADAEAFAGAIALAMAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCRCUCVCWCXCYCZDEDJDKDMDODZECEEEGEHERESETFIFJFKFMFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESGSHSISJSKSLSMSNSOSRSSSTSVSXSYSZTCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUMUSUYUZVAVCVEVGVIVNVUWFWSYEYTZAZMZW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IsoCountryCodefindCountry(java.lang.String postalCode, java.lang.String stateOrProvince, IsoCountryCode... countries)static IsoCountryCodefromLocaleCountry(java.util.Locale locale)ReturnsIsoCountryCodefor given locale.static IsoCountryCodefromString(java.lang.String countryCode)ReturnsIsoCountryCodefor given ISO 3166-1 identifier (case-insensitive).java.lang.StringgetAddressFormat()java.lang.StringgetCountryName()java.lang.StringgetResourceBundleKey()java.util.Set<java.lang.String>getStateProvinceLatinNames()java.util.Set<java.lang.String>getStateProvinceNames()java.util.Set<java.lang.String>getStatesProvinces()booleanisEu()booleanisEuro()booleanisValidPostalCode(java.lang.String postalCode)booleanisValidStateOrProvince(java.lang.String stateProvince)static IsoCountryCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IsoCountryCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AF
public static final IsoCountryCode AF
-
AX
public static final IsoCountryCode AX
-
AL
public static final IsoCountryCode AL
-
DZ
public static final IsoCountryCode DZ
-
AS
public static final IsoCountryCode AS
-
AD
public static final IsoCountryCode AD
-
AO
public static final IsoCountryCode AO
-
AI
public static final IsoCountryCode AI
-
AQ
public static final IsoCountryCode AQ
-
AG
public static final IsoCountryCode AG
-
AR
public static final IsoCountryCode AR
-
AM
public static final IsoCountryCode AM
-
AW
public static final IsoCountryCode AW
-
AU
public static final IsoCountryCode AU
-
AT
public static final IsoCountryCode AT
-
AZ
public static final IsoCountryCode AZ
-
BS
public static final IsoCountryCode BS
-
BH
public static final IsoCountryCode BH
-
BD
public static final IsoCountryCode BD
-
BB
public static final IsoCountryCode BB
-
BY
public static final IsoCountryCode BY
-
BE
public static final IsoCountryCode BE
-
BZ
public static final IsoCountryCode BZ
-
BJ
public static final IsoCountryCode BJ
-
BM
public static final IsoCountryCode BM
-
BT
public static final IsoCountryCode BT
-
BO
public static final IsoCountryCode BO
-
BQ
public static final IsoCountryCode BQ
-
BA
public static final IsoCountryCode BA
-
BW
public static final IsoCountryCode BW
-
BV
public static final IsoCountryCode BV
-
BR
public static final IsoCountryCode BR
-
IO
public static final IsoCountryCode IO
-
BN
public static final IsoCountryCode BN
-
BG
public static final IsoCountryCode BG
-
BF
public static final IsoCountryCode BF
-
BI
public static final IsoCountryCode BI
-
KH
public static final IsoCountryCode KH
-
CM
public static final IsoCountryCode CM
-
CA
public static final IsoCountryCode CA
-
CV
public static final IsoCountryCode CV
-
KY
public static final IsoCountryCode KY
-
CF
public static final IsoCountryCode CF
-
TD
public static final IsoCountryCode TD
-
CL
public static final IsoCountryCode CL
-
CN
public static final IsoCountryCode CN
-
CX
public static final IsoCountryCode CX
-
CC
public static final IsoCountryCode CC
-
CO
public static final IsoCountryCode CO
-
KM
public static final IsoCountryCode KM
-
CG
public static final IsoCountryCode CG
-
CD
public static final IsoCountryCode CD
-
CK
public static final IsoCountryCode CK
-
CR
public static final IsoCountryCode CR
-
CI
public static final IsoCountryCode CI
-
HR
public static final IsoCountryCode HR
-
CU
public static final IsoCountryCode CU
-
CW
public static final IsoCountryCode CW
-
CY
public static final IsoCountryCode CY
-
CZ
public static final IsoCountryCode CZ
-
DK
public static final IsoCountryCode DK
-
DJ
public static final IsoCountryCode DJ
-
DM
public static final IsoCountryCode DM
-
DO
public static final IsoCountryCode DO
-
EC
public static final IsoCountryCode EC
-
EG
public static final IsoCountryCode EG
-
SV
public static final IsoCountryCode SV
-
GQ
public static final IsoCountryCode GQ
-
ER
public static final IsoCountryCode ER
-
EE
public static final IsoCountryCode EE
-
ET
public static final IsoCountryCode ET
-
FK
public static final IsoCountryCode FK
-
FO
public static final IsoCountryCode FO
-
FJ
public static final IsoCountryCode FJ
-
FI
public static final IsoCountryCode FI
-
FR
public static final IsoCountryCode FR
-
GF
public static final IsoCountryCode GF
-
PF
public static final IsoCountryCode PF
-
TF
public static final IsoCountryCode TF
-
GA
public static final IsoCountryCode GA
-
GM
public static final IsoCountryCode GM
-
GE
public static final IsoCountryCode GE
-
DE
public static final IsoCountryCode DE
-
GH
public static final IsoCountryCode GH
-
GI
public static final IsoCountryCode GI
-
GR
public static final IsoCountryCode GR
-
GL
public static final IsoCountryCode GL
-
GD
public static final IsoCountryCode GD
-
GP
public static final IsoCountryCode GP
-
GU
public static final IsoCountryCode GU
-
GT
public static final IsoCountryCode GT
-
GG
public static final IsoCountryCode GG
-
GN
public static final IsoCountryCode GN
-
GW
public static final IsoCountryCode GW
-
GY
public static final IsoCountryCode GY
-
HT
public static final IsoCountryCode HT
-
HM
public static final IsoCountryCode HM
-
VA
public static final IsoCountryCode VA
-
HN
public static final IsoCountryCode HN
-
HK
public static final IsoCountryCode HK
-
HU
public static final IsoCountryCode HU
-
IS
public static final IsoCountryCode IS
-
IN
public static final IsoCountryCode IN
-
ID
public static final IsoCountryCode ID
-
IR
public static final IsoCountryCode IR
-
IQ
public static final IsoCountryCode IQ
-
IE
public static final IsoCountryCode IE
-
IM
public static final IsoCountryCode IM
-
IL
public static final IsoCountryCode IL
-
IT
public static final IsoCountryCode IT
-
JM
public static final IsoCountryCode JM
-
JP
public static final IsoCountryCode JP
-
JE
public static final IsoCountryCode JE
-
JO
public static final IsoCountryCode JO
-
KZ
public static final IsoCountryCode KZ
-
KE
public static final IsoCountryCode KE
-
KI
public static final IsoCountryCode KI
-
KP
public static final IsoCountryCode KP
-
KR
public static final IsoCountryCode KR
-
KW
public static final IsoCountryCode KW
-
KG
public static final IsoCountryCode KG
-
LA
public static final IsoCountryCode LA
-
LV
public static final IsoCountryCode LV
-
LB
public static final IsoCountryCode LB
-
LS
public static final IsoCountryCode LS
-
LR
public static final IsoCountryCode LR
-
LY
public static final IsoCountryCode LY
-
LI
public static final IsoCountryCode LI
-
LT
public static final IsoCountryCode LT
-
LU
public static final IsoCountryCode LU
-
MO
public static final IsoCountryCode MO
-
MK
public static final IsoCountryCode MK
-
MG
public static final IsoCountryCode MG
-
MW
public static final IsoCountryCode MW
-
MY
public static final IsoCountryCode MY
-
MV
public static final IsoCountryCode MV
-
ML
public static final IsoCountryCode ML
-
MT
public static final IsoCountryCode MT
-
MH
public static final IsoCountryCode MH
-
MQ
public static final IsoCountryCode MQ
-
MR
public static final IsoCountryCode MR
-
MU
public static final IsoCountryCode MU
-
YT
public static final IsoCountryCode YT
-
MX
public static final IsoCountryCode MX
-
FM
public static final IsoCountryCode FM
-
MD
public static final IsoCountryCode MD
-
MC
public static final IsoCountryCode MC
-
MN
public static final IsoCountryCode MN
-
ME
public static final IsoCountryCode ME
-
MS
public static final IsoCountryCode MS
-
MA
public static final IsoCountryCode MA
-
MZ
public static final IsoCountryCode MZ
-
MM
public static final IsoCountryCode MM
-
NA
public static final IsoCountryCode NA
-
NR
public static final IsoCountryCode NR
-
NP
public static final IsoCountryCode NP
-
NL
public static final IsoCountryCode NL
-
NC
public static final IsoCountryCode NC
-
NZ
public static final IsoCountryCode NZ
-
NI
public static final IsoCountryCode NI
-
NE
public static final IsoCountryCode NE
-
NG
public static final IsoCountryCode NG
-
NU
public static final IsoCountryCode NU
-
NF
public static final IsoCountryCode NF
-
MP
public static final IsoCountryCode MP
-
NO
public static final IsoCountryCode NO
-
OM
public static final IsoCountryCode OM
-
PK
public static final IsoCountryCode PK
-
PW
public static final IsoCountryCode PW
-
PS
public static final IsoCountryCode PS
-
PA
public static final IsoCountryCode PA
-
PG
public static final IsoCountryCode PG
-
PY
public static final IsoCountryCode PY
-
PE
public static final IsoCountryCode PE
-
PH
public static final IsoCountryCode PH
-
PN
public static final IsoCountryCode PN
-
PL
public static final IsoCountryCode PL
-
PT
public static final IsoCountryCode PT
-
PR
public static final IsoCountryCode PR
-
QA
public static final IsoCountryCode QA
-
RE
public static final IsoCountryCode RE
-
RO
public static final IsoCountryCode RO
-
RU
public static final IsoCountryCode RU
-
RW
public static final IsoCountryCode RW
-
BL
public static final IsoCountryCode BL
-
SH
public static final IsoCountryCode SH
-
KN
public static final IsoCountryCode KN
-
LC
public static final IsoCountryCode LC
-
MF
public static final IsoCountryCode MF
-
PM
public static final IsoCountryCode PM
-
VC
public static final IsoCountryCode VC
-
WS
public static final IsoCountryCode WS
-
SM
public static final IsoCountryCode SM
-
ST
public static final IsoCountryCode ST
-
SA
public static final IsoCountryCode SA
-
SN
public static final IsoCountryCode SN
-
RS
public static final IsoCountryCode RS
-
SC
public static final IsoCountryCode SC
-
SL
public static final IsoCountryCode SL
-
SG
public static final IsoCountryCode SG
-
SX
public static final IsoCountryCode SX
-
SK
public static final IsoCountryCode SK
-
SI
public static final IsoCountryCode SI
-
SB
public static final IsoCountryCode SB
-
SO
public static final IsoCountryCode SO
-
ZA
public static final IsoCountryCode ZA
-
GS
public static final IsoCountryCode GS
-
SS
public static final IsoCountryCode SS
-
ES
public static final IsoCountryCode ES
-
LK
public static final IsoCountryCode LK
-
SD
public static final IsoCountryCode SD
-
SR
public static final IsoCountryCode SR
-
SJ
public static final IsoCountryCode SJ
-
SZ
public static final IsoCountryCode SZ
-
SE
public static final IsoCountryCode SE
-
CH
public static final IsoCountryCode CH
-
SY
public static final IsoCountryCode SY
-
TW
public static final IsoCountryCode TW
-
TJ
public static final IsoCountryCode TJ
-
TZ
public static final IsoCountryCode TZ
-
TH
public static final IsoCountryCode TH
-
TL
public static final IsoCountryCode TL
-
TG
public static final IsoCountryCode TG
-
TK
public static final IsoCountryCode TK
-
TO
public static final IsoCountryCode TO
-
TT
public static final IsoCountryCode TT
-
TN
public static final IsoCountryCode TN
-
TR
public static final IsoCountryCode TR
-
TM
public static final IsoCountryCode TM
-
TC
public static final IsoCountryCode TC
-
TV
public static final IsoCountryCode TV
-
UG
public static final IsoCountryCode UG
-
UA
public static final IsoCountryCode UA
-
AE
public static final IsoCountryCode AE
-
GB
public static final IsoCountryCode GB
-
US
public static final IsoCountryCode US
-
UM
public static final IsoCountryCode UM
-
UY
public static final IsoCountryCode UY
-
UZ
public static final IsoCountryCode UZ
-
VU
public static final IsoCountryCode VU
-
VE
public static final IsoCountryCode VE
-
VN
public static final IsoCountryCode VN
-
VG
public static final IsoCountryCode VG
-
VI
public static final IsoCountryCode VI
-
WF
public static final IsoCountryCode WF
-
EH
public static final IsoCountryCode EH
-
YE
public static final IsoCountryCode YE
-
ZM
public static final IsoCountryCode ZM
-
ZW
public static final IsoCountryCode ZW
-
-
Method Detail
-
values
public static IsoCountryCode[] 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 (IsoCountryCode c : IsoCountryCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IsoCountryCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
findCountry
public static IsoCountryCode findCountry(java.lang.String postalCode, java.lang.String stateOrProvince, IsoCountryCode... countries)
-
fromLocaleCountry
public static IsoCountryCode fromLocaleCountry(java.util.Locale locale)
ReturnsIsoCountryCodefor given locale.- Parameters:
locale- locale- Returns:
IsoCountryCodeinstance
-
fromString
public static IsoCountryCode fromString(java.lang.String countryCode)
ReturnsIsoCountryCodefor given ISO 3166-1 identifier (case-insensitive).- Parameters:
countryCode- ISO 3166-1 country code- Returns:
IsoCountryCodeinstance
-
getAddressFormat
public java.lang.String getAddressFormat()
-
getCountryName
public java.lang.String getCountryName()
-
getResourceBundleKey
public java.lang.String getResourceBundleKey()
-
getStateProvinceLatinNames
public java.util.Set<java.lang.String> getStateProvinceLatinNames()
-
getStateProvinceNames
public java.util.Set<java.lang.String> getStateProvinceNames()
-
getStatesProvinces
public java.util.Set<java.lang.String> getStatesProvinces()
-
isEu
public boolean isEu()
-
isEuro
public boolean isEuro()
-
isValidPostalCode
public boolean isValidPostalCode(java.lang.String postalCode)
-
isValidStateOrProvince
public boolean isValidStateOrProvince(java.lang.String stateProvince)
-
-