public enum TennisSegment extends java.lang.Enum<TennisSegment> implements EventSegment
Modifier and Type | Method and Description |
---|---|
static TennisSegment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TennisSegment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TennisSegment LIVE
public static final TennisSegment PENDING
public static TennisSegment[] values()
for (TennisSegment c : TennisSegment.values()) System.out.println(c);
public static TennisSegment 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