public enum Team extends Enum<Team> implements com.sportradar.sdk.common.interfaces.EntityEnum
Enum Constant and Description |
---|
AWAY
Home team
|
HOME
Away team
|
NONE
None (neither home or away)
|
Modifier and Type | Method and Description |
---|---|
static Team |
getTeamFromLiteralValue(String value)
Gets enum from string value
|
boolean |
isLiteralValueEqual(String value)
Determines whether the passed
value is equal to value associated with the current EntityEnum |
static Team |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Team[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Team HOME
public static final Team AWAY
public static final Team NONE
public static Team[] values()
for (Team c : Team.values()) System.out.println(c);
public static Team 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 Team getTeamFromLiteralValue(String value) throws com.sportradar.sdk.common.exceptions.UnknownEnumException
value
- string representation of enumcom.sportradar.sdk.common.exceptions.UnknownEnumException
- if invalid value is passedpublic boolean isLiteralValueEqual(String value)
value
is equal to value associated with the current EntityEnum
isLiteralValueEqual
in interface com.sportradar.sdk.common.interfaces.EntityEnum
value
- a value to be compared to the value associated with the current EntityEnum
value
is equal to the value associated with the current EntityEnum
. Otherwise false.Copyright © 2013–2023. All rights reserved.