Enum Class Country
- All Implemented Interfaces:
Serializable,Comparable<Country>,Constable
The
Country enum represents a country using its National Olympic Committee (NOC) code.
Each constant includes the three-letter NOC code, the English full name, and the European Portuguese full name. The NOC code is used for persistence and API interchange, while the full names are available for display purposes in their respective languages.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the three-letter NOC code of the country (e.g.,"POR","USA").Returns the English full name of the country (e.g.,"Portugal","United States of America").Returns the European Portuguese full name of the country (e.g.,"Portugal","Estados Unidos da América").toString()static CountryReturns the enum constant of this class with the specified name.static Country[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AFG
-
ALB
-
ALG
-
AND
-
ANG
-
ANT
-
ARG
-
ARM
-
ARU
-
ASA
-
AUS
-
AUT
-
AZE
-
BAH
-
BAN
-
BAR
-
BDI
-
BEL
-
BEN
-
BER
-
BHU
-
BIH
-
BIZ
-
BLR
-
BOL
-
BOT
-
BRA
-
BRN
-
BRU
-
BUL
-
BUR
-
CAF
-
CAM
-
CAN
-
CAY
-
CGO
-
CHA
-
CHI
-
CHN
-
CIV
-
CMR
-
COD
-
COK
-
COL
-
COM
-
CPV
-
CRC
-
CRO
-
CUB
-
CYP
-
CZE
-
DEN
-
DJI
-
DMA
-
DOM
-
ECU
-
EGY
-
ERI
-
ESA
-
ESP
-
EST
-
ETH
-
FIJ
-
FIN
-
FRA
-
FSM
-
GAB
-
GAM
-
GBR
-
GBS
-
GEO
-
GEQ
-
GER
-
GHA
-
GRE
-
GRN
-
GUA
-
GUI
-
GUM
-
GUY
-
HAI
-
HKG
-
HON
-
HUN
-
INA
-
IND
-
IRL
-
IRI
-
IRQ
-
ISL
-
ISR
-
ISV
-
ITA
-
IVB
-
JAM
-
JOR
-
JPN
-
KAZ
-
KEN
-
KGZ
-
KIR
-
KOR
-
KOS
-
KSA
-
KUW
-
LAO
-
LAT
-
LBA
-
LBN
-
LBR
-
LCA
-
LES
-
LIE
-
LTU
-
LUX
-
MAD
-
MAR
-
MAS
-
MAW
-
MDA
-
MDV
-
MEX
-
MGL
-
MHL
-
MKD
-
MLI
-
MLT
-
MNE
-
MON
-
MOZ
-
MRI
-
MTN
-
MYA
-
NAM
-
NCA
-
NED
-
NEP
-
NGR
-
NIG
-
NOR
-
NRU
-
NZL
-
OMA
-
PAK
-
PAN
-
PAR
-
PER
-
PHI
-
PLE
-
PLW
-
PNG
-
POL
-
POR
-
PRK
-
PUR
-
QAT
-
ROU
-
RSA
-
RUS
-
RWA
-
SAM
-
SEN
-
SEY
-
SGP
-
SKN
-
SLE
-
SLO
-
SMR
-
SOL
-
SOM
-
SRB
-
SRI
-
SSD
-
STP
-
SUD
-
SUI
-
SUR
-
SVK
-
SWE
-
SWZ
-
SYR
-
TAN
-
TGA
-
THA
-
TJK
-
TKM
-
TLS
-
TOG
-
TPE
-
TTO
-
TUN
-
TUR
-
TUV
-
UAE
-
UGA
-
UKR
-
URU
-
USA
-
UZB
-
VAN
-
VEN
-
VIE
-
VIN
-
YEM
-
ZAM
-
ZIM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
Returns the three-letter NOC code of the country (e.g.,"POR","USA").This value is used for persistence and API interchange.
- Returns:
- the NOC code
-
getNameEN
Returns the English full name of the country (e.g.,"Portugal","United States of America").This value is intended for display in English-language contexts and is always available from the enum instance without requiring a database join.
- Returns:
- the English full country name
-
getNamePT
Returns the European Portuguese full name of the country (e.g.,"Portugal","Estados Unidos da América").This value is intended for display in Portuguese-language contexts and is always available from the enum instance without requiring a database join.
- Returns:
- the Portuguese full country name
-
toString
-