Serializable
, Comparable<Event.Type>
public static enum Event.Type extends Enum<Event.Type>
Enum Constant | Description |
---|---|
ONE_TIME |
Indicates an event that can occur a maximum of once per match.
|
ONGOING |
Indicates an event that can occur multiple times per match.
|
Modifier and Type | Method | Description |
---|---|---|
String |
toString() |
Returns a human-readable name for this event type, either "One-time"
or "Ongoing".
|
static Event.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Event.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event.Type ONE_TIME
public static final Event.Type ONGOING
public static Event.Type[] values()
for (Event.Type c : Event.Type.values()) System.out.println(c);
public static Event.Type 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 String toString()
toString
in class Enum<Event.Type>