public enum OddsCardType extends Enum<OddsCardType> implements com.sportradar.sdk.common.interfaces.EntityEnum
Enum Constant and Description |
---|
RED
Red card
|
YELLOW
Yellow card
|
YELLOWRED
2nd yellow card resulting in a red card
|
Modifier and Type | Method and Description |
---|---|
static OddsCardType |
getCardTypeFromLiteralValue(String value)
Constructs and return
OddsCardType 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 OddsCardType |
static OddsCardType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OddsCardType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OddsCardType RED
public static final OddsCardType YELLOW
public static final OddsCardType YELLOWRED
public static OddsCardType[] values()
for (OddsCardType c : OddsCardType.values()) System.out.println(c);
public static OddsCardType 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 OddsCardType getCardTypeFromLiteralValue(String value) throws com.sportradar.sdk.common.exceptions.UnknownEnumException
OddsCardType
enum member from passed value
value
- The value used to construct the returned OddsCardType
instance.OddsCardType
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 OddsCardType
isLiteralValueEqual
in interface com.sportradar.sdk.common.interfaces.EntityEnum
value
- a value to be compared to the value associated with the current OddsCardType
value
is equal to the value associated with the current OddsCardType
. Otherwise false.Copyright © 2013–2023. All rights reserved.