Enum Class GenderCategory

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

public enum GenderCategory extends Enum<GenderCategory>
The GenderCategory enum represents the Gender Category of a Race.

It includes the following constants:

  • OPEN : used for the races that are open for both genders.
  • FEMALE : used for the races where only women can participate.
  • MALE : used for the races where only men can participate.
  • MIXED : used for races whose competitors are a mix from both genders (e.g., mixed relays).
  • Enum Constant Details

  • Method Details

    • values

      public static GenderCategory[] 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 GenderCategory 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()
    • toString

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