Enum Class MatchStatusEnum

java.lang.Object
java.lang.Enum<MatchStatusEnum>
net.andresbustamante.yafoot.core.model.enums.MatchStatusEnum
All Implemented Interfaces:
Serializable, Comparable<MatchStatusEnum>, Constable

public enum MatchStatusEnum extends Enum<MatchStatusEnum>
Enumeration of matches' possible statuses.
  • Enum Constant Details

    • DRAFT

      public static final MatchStatusEnum DRAFT
      In-memory, not stored yet.
    • CREATED

      public static final MatchStatusEnum CREATED
      Created in database.
    • PLAYED

      public static final MatchStatusEnum PLAYED
      Confirmed as played.
    • CANCELLED

      public static final MatchStatusEnum CANCELLED
      Confirmed as cancelled.
  • Method Details

    • values

      public static MatchStatusEnum[] 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 MatchStatusEnum 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
    • isActiveStatus

      public boolean isActiveStatus()
      Indicates whether the current match status is an active status.
      Returns:
      True if this status is not in the list of inactive statuses for a match.