Package com.sportdataapi.data
Enum MatchStatus
java.lang.Object
java.lang.Enum<MatchStatus>
com.sportdataapi.data.MatchStatus
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MatchStatus>
,java.lang.constant.Constable
public enum MatchStatus extends java.lang.Enum<MatchStatus>
- Author:
- ralph
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDONED
AFTER_EXTRA_TIME
AFTER_PENALTIES
AWARDED
AWARDING
BREAK_TIME
CANCELLED
DELAYED
ENDED
EXTRA_TIME
HALF_TIME
INPLAY
INTERRUPTED
NOT_STARTED
PENALTIES
POSTPONED
SUSPENDED
TO_BE_ANNOUNCED
UPDATE
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
Returns the description.int
getId()
Returns the id.SimpleMatchStatus
getSimpleStatus()
Returns the simpleStatus.static MatchStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MatchStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static MatchStatus
withId(int id)
Return the match status of the given id.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()Returns the id.- Returns:
- the id
-
getDescription
public java.lang.String getDescription()Returns the description.- Returns:
- the description
-
getSimpleStatus
Returns the simpleStatus.- Returns:
- the simpleStatus
-
withId
Return the match status of the given id.- Parameters:
id
- - ID of the status- Returns:
- - the enum value
-