public enum OddsServerType extends Enum<OddsServerType> implements com.sportradar.sdk.common.interfaces.EntityEnum
Enum Constant and Description |
---|
LIVEODDS
Specifies a regular live-odds server.
|
SCOUTMATCH
Specifies a live-odds server where scout info is delivered within the same feed as regular odds.
|
Modifier and Type | Method and Description |
---|---|
static OddsServerType |
getOddsServerTypeFromLiteralValue(String value)
Constructs and return
OddsServerType enum member from passed value |
boolean |
isLiteralValueEqual(String value)
Determines whether the passed
value is equal to value associated with the current OddsServerType |
static OddsServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OddsServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OddsServerType LIVEODDS
public static final OddsServerType SCOUTMATCH
public static OddsServerType[] values()
for (OddsServerType c : OddsServerType.values()) System.out.println(c);
public static OddsServerType 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 OddsServerType getOddsServerTypeFromLiteralValue(String value) throws com.sportradar.sdk.common.exceptions.UnknownEnumException
OddsServerType
enum member from passed value
value
- The value used to construct the returned OddsServerType
instance.OddsServerType
instance or a null reference.com.sportradar.sdk.common.exceptions.UnknownEnumException
- if value does not represent any enum literal valuepublic boolean isLiteralValueEqual(String value)
value
is equal to value associated with the current OddsServerType
isLiteralValueEqual
in interface com.sportradar.sdk.common.interfaces.EntityEnum
value
- a value to be compared to the value associated with the current OddsServerType
value
is equal to the value associated with the current OddsServerType
. Otherwise false.Copyright © 2013–2023. All rights reserved.