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

public enum Sport extends Enum<Sport>
The Sport enum represent the possible sport classifications for a course.

It includes the following constants:

  • Enum Constant Details

    • OPEN_WATER

      public static final Sport OPEN_WATER
    • ROAD_CYCLING

      public static final Sport ROAD_CYCLING
    • MOUNTAIN_BIKING

      public static final Sport MOUNTAIN_BIKING
    • ROAD_RUNNING

      public static final Sport ROAD_RUNNING
    • TRAIL_RUNNING

      public static final Sport TRAIL_RUNNING
    • TRIATHLON

      public static final Sport TRIATHLON
    • DUATHLON

      public static final Sport DUATHLON
    • AQUATHLON

      public static final Sport AQUATHLON
    • AQUABIKE

      public static final Sport AQUABIKE
    • CROSS_TRIATHLON

      public static final Sport CROSS_TRIATHLON
    • CROSS_DUATHLON

      public static final Sport CROSS_DUATHLON
    • BIATHLON

      public static final Sport BIATHLON
    • DOUBLE_BIATHLON

      public static final Sport DOUBLE_BIATHLON
    • SWIMRUN

      public static final Sport SWIMRUN
  • Method Details

    • values

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