Enum Class DistanceType
- All Implemented Interfaces:
Serializable,Comparable<DistanceType>,Constable
The
DistanceType enum defines the possible distance classification of a
course.
It includes the following constants:
-
ULTRA_MARATHON: used for running ultra distancecourses(50K, 100K, etc.). -
ULTRA_DISTANCE: used for ultra endurancecourses(ultra-triathlons, ultra-cycling, etc.). -
MARATHON: used for marathoncourses. -
LONG_DISTANCE: used for long distancecourses. -
FULL_DISTANCE: used for triathlon and other multisport full distancecourses. -
HALF_MARATHON: used for half-marathoncourses. -
MIDDLE_DISTANCE: used for triathlon and other multisport middle distancecourses. -
SHORT_DISTANCE: used for short distancecourses. -
STANDARD: used for triathlon and other multisport standardcourses. -
SPRINT: used for triathlon and other multisport sprintcourses. -
TEN_KM: used for 10 kmcourses. -
FIVE_KM: used for 5 kmcourses. -
SUPER_SPRINT: used for triathlon and other multisport super-sprintcourses. -
YOUTH: used for youth and kidscourses.
-
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()toString()static DistanceTypeReturns the enum constant of this class with the specified name.static DistanceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ULTRA_MARATHON
-
ULTRA_DISTANCE
-
MARATHON
-
LONG_DISTANCE
-
FULL_DISTANCE
-
HALF_MARATHON
-
MIDDLE_DISTANCE
-
SHORT_DISTANCE
-
STANDARD
-
SPRINT
-
TEN_KM
-
FIVE_KM
-
SUPER_SPRINT
-
YOUTH
-
-
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
-
toString
- Overrides:
toStringin classEnum<DistanceType>
-