Enum Class ResultStatus
- All Implemented Interfaces:
Serializable,Comparable<ResultStatus>,Constable
The
ResultStatus enum represents the state of result data availability for a
Race, independent of the race lifecycle status.
It includes the following constants:
-
UNKNOWN: no result data is known; the race has not been researched yet or no information exists. -
PENDING: the result data has been collected and is available but has not yet been entered into the database. -
INCOMPLETE: some results have been entered, but the data set is incomplete; community help may be needed to fill gaps. -
COMPLETE: full result data is available and has been entered. -
EMPTY: the race was held but had no participants, so there are no results to display. This is a final state — no future results will ever exist for this race.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetCode()toString()static ResultStatusReturns the enum constant of this class with the specified name.static ResultStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
PENDING
-
INCOMPLETE
-
COMPLETE
-
EMPTY
-
-
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<ResultStatus>
-