Enum Class AgeGroup
- All Implemented Interfaces:
Serializable,Comparable<AgeGroup>,Constable
The
AgeGroup enum represents the age group category of a competitor in a race.
Each constant includes the persistence code, the English name, and the European Portuguese name. The 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 persistence code of the age group (e.g.,"OPEN").Returns the English name of the age group (e.g.,"Open").Returns the European Portuguese name of the age group (e.g.,"Geral").toString()static AgeGroupReturns the enum constant of this class with the specified name.static AgeGroup[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
-
CAT_A
-
CAT_B
-
CAT_C
-
CAT_D
-
CAT_E
-
CAT_F
-
CAT_F1
-
CAT_F2
-
CAT_F3
-
CAT_F4
-
CAT_M1
-
CAT_M2
-
CAT_M3
-
CAT_M4
-
MINI
-
PRI
-
BEN
-
INF
-
INI
-
JUV
-
A1
-
A2
-
CAD
-
JUN
-
YOUTH
-
U23
-
ELITE
-
SEN
-
VET
-
VET_V1
-
VET_V2
-
VET_V3
-
VET_V4
-
VET_V5
-
AG_16_17
-
AG_18_19
-
AG_20_24
-
AG_25_29
-
AG_30_34
-
AG_35_39
-
AG_40_44
-
AG_45_49
-
AG_50_54
-
AG_55_59
-
AG_60_64
-
AG_65_69
-
AG_70_74
-
AG_75_79
-
AG_80_84
-
AG_85_89
-
AG_90_94
-
AG_95_99
-
-
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 persistence code of the age group (e.g.,"OPEN").This value is used for persistence and API interchange.
- Returns:
- the age group code
-
getDenominationEN
Returns the English name of the age group (e.g.,"Open").- Returns:
- the English age group name
-
getDenominationPT
Returns the European Portuguese name of the age group (e.g.,"Geral").- Returns:
- the Portuguese age group name
-
toString
-