Enum Class ResultStatus

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

public enum ResultStatus extends Enum<ResultStatus>
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.
  • Enum Constant Details

  • Method Details

    • values

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