Enum Class RaceType

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

public enum RaceType extends Enum<RaceType>
The RaceType enum represents the type of a Race

It includes the following constants:

  • Enum Constant Details

    • INDIVIDUAL_PARENT

      public static final RaceType INDIVIDUAL_PARENT
    • INDIVIDUAL_DERIVED

      public static final RaceType INDIVIDUAL_DERIVED
    • TEAM_BY_RANK

      public static final RaceType TEAM_BY_RANK
    • TEAM_BY_TIME

      public static final RaceType TEAM_BY_TIME
    • TEAM_BY_POINTS

      public static final RaceType TEAM_BY_POINTS
    • TEAM_RELAY_PARENT

      public static final RaceType TEAM_RELAY_PARENT
    • TEAM_RELAY_DERIVED

      public static final RaceType TEAM_RELAY_DERIVED
    • MIXED_RELAY_PARENT

      public static final RaceType MIXED_RELAY_PARENT
    • MIXED_RELAY_DERIVED

      public static final RaceType MIXED_RELAY_DERIVED
  • Method Details

    • values

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