Enum Class RoundType

java.lang.Object
java.lang.Enum<RoundType>
edu.ntnu.idatt1002.k2g05.models.rounds.RoundType
All Implemented Interfaces:
Serializable, Comparable<RoundType>, Constable

public enum RoundType extends Enum<RoundType>
Different types of rounds.
  • Enum Constant Details

    • QUALIFICATION_ROUND

      public static final RoundType QUALIFICATION_ROUND
    • GROUP_STAGE

      public static final RoundType GROUP_STAGE
    • SIXTEENTH_FINALS

      public static final RoundType SIXTEENTH_FINALS
    • QUARTER_FINAL

      public static final RoundType QUARTER_FINAL
    • SEMI_FINAL

      public static final RoundType SEMI_FINAL
    • FINAL

      public static final RoundType FINAL
  • Method Details

    • values

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