java.lang.Object
java.lang.Enum<AgeGroup>
com.endurancetrio.data.competitor.model.enumerator.AgeGroup
All Implemented Interfaces:
Serializable, Comparable<AgeGroup>, Constable

public enum AgeGroup extends Enum<AgeGroup>
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.

  • Enum Constant Details

    • OPEN

      public static final AgeGroup OPEN
    • CAT_A

      public static final AgeGroup CAT_A
    • CAT_B

      public static final AgeGroup CAT_B
    • CAT_C

      public static final AgeGroup CAT_C
    • CAT_D

      public static final AgeGroup CAT_D
    • CAT_E

      public static final AgeGroup CAT_E
    • CAT_F

      public static final AgeGroup CAT_F
    • CAT_F1

      public static final AgeGroup CAT_F1
    • CAT_F2

      public static final AgeGroup CAT_F2
    • CAT_F3

      public static final AgeGroup CAT_F3
    • CAT_F4

      public static final AgeGroup CAT_F4
    • CAT_M1

      public static final AgeGroup CAT_M1
    • CAT_M2

      public static final AgeGroup CAT_M2
    • CAT_M3

      public static final AgeGroup CAT_M3
    • CAT_M4

      public static final AgeGroup CAT_M4
    • MINI

      public static final AgeGroup MINI
    • PRI

      public static final AgeGroup PRI
    • BEN

      public static final AgeGroup BEN
    • INF

      public static final AgeGroup INF
    • INI

      public static final AgeGroup INI
    • JUV

      public static final AgeGroup JUV
    • A1

      public static final AgeGroup A1
    • A2

      public static final AgeGroup A2
    • CAD

      public static final AgeGroup CAD
    • JUN

      public static final AgeGroup JUN
    • YOUTH

      public static final AgeGroup YOUTH
    • U23

      public static final AgeGroup U23
    • ELITE

      public static final AgeGroup ELITE
    • SEN

      public static final AgeGroup SEN
    • VET

      public static final AgeGroup VET
    • VET_V1

      public static final AgeGroup VET_V1
    • VET_V2

      public static final AgeGroup VET_V2
    • VET_V3

      public static final AgeGroup VET_V3
    • VET_V4

      public static final AgeGroup VET_V4
    • VET_V5

      public static final AgeGroup VET_V5
    • AG_16_17

      public static final AgeGroup AG_16_17
    • AG_18_19

      public static final AgeGroup AG_18_19
    • AG_20_24

      public static final AgeGroup AG_20_24
    • AG_25_29

      public static final AgeGroup AG_25_29
    • AG_30_34

      public static final AgeGroup AG_30_34
    • AG_35_39

      public static final AgeGroup AG_35_39
    • AG_40_44

      public static final AgeGroup AG_40_44
    • AG_45_49

      public static final AgeGroup AG_45_49
    • AG_50_54

      public static final AgeGroup AG_50_54
    • AG_55_59

      public static final AgeGroup AG_55_59
    • AG_60_64

      public static final AgeGroup AG_60_64
    • AG_65_69

      public static final AgeGroup AG_65_69
    • AG_70_74

      public static final AgeGroup AG_70_74
    • AG_75_79

      public static final AgeGroup AG_75_79
    • AG_80_84

      public static final AgeGroup AG_80_84
    • AG_85_89

      public static final AgeGroup AG_85_89
    • AG_90_94

      public static final AgeGroup AG_90_94
    • AG_95_99

      public static final AgeGroup AG_95_99
  • Method Details

    • values

      public static AgeGroup[] 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

      public static AgeGroup valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String 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

      public String getDenominationEN()
      Returns the English name of the age group (e.g., "Open").
      Returns:
      the English age group name
    • getDenominationPT

      public String getDenominationPT()
      Returns the European Portuguese name of the age group (e.g., "Geral").
      Returns:
      the Portuguese age group name
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AgeGroup>