public enum OddsType extends Enum<OddsType> implements com.sportradar.sdk.common.interfaces.EntityEnum
Enum Constant and Description |
---|
FT2W
Free text - 2 way
|
FT3W
Free text - 3 way
|
FTNW
Free text - n way
|
HC
Handicap
|
ITEM3W
3 way
|
NG
Deprecated.
FT3W used instead. |
OUTRIGHT
Outright
|
TO
Total
|
Modifier and Type | Method and Description |
---|---|
String |
getLiteralValue()
Gets literal value
|
static OddsType |
getMatchOddsTypeFromKey(String key)
Removes "ITEM" string from enum
|
static OddsType |
getMatchOddsTypeFromLiteralValue(String value)
Constructs and return
OddsType enum member from passed value |
boolean |
isLiteralValueEqual(String value)
Determines whether the passed
value is equal to value associated with the current OddsType |
static OddsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OddsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OddsType ITEM3W
@Deprecated public static final OddsType NG
FT3W
used instead.public static final OddsType HC
public static final OddsType TO
public static final OddsType FT3W
public static final OddsType FT2W
public static final OddsType FTNW
public static final OddsType OUTRIGHT
public static OddsType[] values()
for (OddsType c : OddsType.values()) System.out.println(c);
public static OddsType 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 String getLiteralValue()
public static OddsType getMatchOddsTypeFromKey(String key)
key
- enumeration valuepublic static OddsType getMatchOddsTypeFromLiteralValue(String value) throws com.sportradar.sdk.common.exceptions.UnknownEnumException
OddsType
enum member from passed value
public boolean isLiteralValueEqual(String value)
value
is equal to value associated with the current OddsType
isLiteralValueEqual
in interface com.sportradar.sdk.common.interfaces.EntityEnum
value
- a value to be compared to the value associated with the current OddsType
value
is equal to the value associated with the current OddsType
. Otherwise false.Copyright © 2013–2023. All rights reserved.