Enum Class SportCode

java.lang.Object
java.lang.Enum<SportCode>
net.andresbustamante.yafoot.web.dto.SportCode
All Implemented Interfaces:
Serializable, Comparable<SportCode>, Constable

public enum SportCode extends Enum<SportCode>
Gets or Sets SportCode
  • Enum Constant Details

    • FOOTBALL

      public static final SportCode FOOTBALL
    • RUGBY

      public static final SportCode RUGBY
    • BASKETBALL

      public static final SportCode BASKETBALL
    • VOLLEYBALL

      public static final SportCode VOLLEYBALL
    • HANDBALL

      public static final SportCode HANDBALL
    • TENNIS

      public static final SportCode TENNIS
    • HOCKEY

      public static final SportCode HOCKEY
    • BASEBALL

      public static final SportCode BASEBALL
    • CRICKET

      public static final SportCode CRICKET
    • BADMINTON

      public static final SportCode BADMINTON
    • FUTSAL

      public static final SportCode FUTSAL
    • ICE_HOCKEY

      public static final SportCode ICE_HOCKEY
    • SWIMMING

      public static final SportCode SWIMMING
    • TABLE_TENNIS

      public static final SportCode TABLE_TENNIS
    • OTHER

      public static final SportCode OTHER
  • Method Details

    • values

      public static SportCode[] 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 SportCode 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SportCode>
    • fromValue

      public static SportCode fromValue(String text)