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