Enum Constant and Description |
---|
BASKETBALL |
CRICKET |
HANDBALL |
HOCKEY |
HORSE_RACING |
MOTOR_SPORT |
POOL |
SOCCER |
TENNIS |
Modifier and Type | Field and Description |
---|---|
java.lang.Class<? extends EventType> |
eventTypeClass |
java.lang.Class<? extends TimeType> |
timeTypeClass |
Modifier and Type | Method and Description |
---|---|
static SportType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SportType SOCCER
public static final SportType TENNIS
public static final SportType BASKETBALL
public static final SportType HOCKEY
public static final SportType HORSE_RACING
public static final SportType MOTOR_SPORT
public static final SportType HANDBALL
public static final SportType CRICKET
public static final SportType POOL
public java.lang.Class<? extends TimeType> timeTypeClass
public java.lang.Class<? extends EventType> eventTypeClass
public static SportType[] values()
for (SportType c : SportType.values()) System.out.println(c);
public static SportType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null