public enum OddsScoreType extends Enum<OddsScoreType> implements com.sportradar.sdk.common.interfaces.EntityEnum
Enum Constant and Description |
---|
FT
Score at full time
|
HT
Score at half time
|
LIVE
Score during a match
|
OT
Score after over time
|
PEN
Score after penalties
|
SCORE
Score after a goal was scored.
|
Modifier and Type | Method and Description |
---|---|
static OddsScoreType |
geOddsScoreTypeFromLiteralValue(String value)
Constructs and return
OddsScoreType enum member from passed value |
String |
getLiteralValue()
Gets literal value
|
boolean |
isLiteralValueEqual(String value)
Determines whether the passed
value is equal to value associated with the current OddsScoreType |
static OddsScoreType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OddsScoreType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OddsScoreType FT
public static final OddsScoreType HT
public static final OddsScoreType LIVE
public static final OddsScoreType OT
public static final OddsScoreType PEN
public static final OddsScoreType SCORE
public static OddsScoreType[] values()
for (OddsScoreType c : OddsScoreType.values()) System.out.println(c);
public static OddsScoreType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OddsScoreType geOddsScoreTypeFromLiteralValue(String value) throws com.sportradar.sdk.common.exceptions.UnknownEnumException
OddsScoreType
enum member from passed value
value
- The value used to construct the returned OddsScoreType
instance.OddsScoreType
instance or a null reference.com.sportradar.sdk.common.exceptions.UnknownEnumException
- if value does not represent any enum literal valuepublic String getLiteralValue()
public boolean isLiteralValueEqual(String value)
value
is equal to value associated with the current OddsScoreType
isLiteralValueEqual
in interface com.sportradar.sdk.common.interfaces.EntityEnum
value
- a value to be compared to the value associated with the current OddsScoreType
value
is equal to the value associated with the current OddsScoreType
. Otherwise false.Copyright © 2013–2023. All rights reserved.