|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BusPhase>
org.oddjob.beanbus.BusPhase
public enum BusPhase
Phases of a Bus Journey. Intended to provide more information to
BusEvent
s, not for state logic.
Enum Constant Summary | |
---|---|
BUS_CRASHED
The bus crashed. |
|
BUS_RUNNING
The bus is running. |
|
BUS_STARTING
The bus is starting. |
|
BUS_STOPPED
The bus isn't running. |
|
BUS_STOPPING
The bus is stopping. |
|
TRIP_BEGINNING
A trip is beginning. |
|
TRIP_ENDING
A trip is intending. |
Method Summary | |
---|---|
static BusPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BusPhase[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BusPhase BUS_STOPPED
public static final BusPhase BUS_STARTING
public static final BusPhase TRIP_BEGINNING
public static final BusPhase BUS_RUNNING
public static final BusPhase TRIP_ENDING
public static final BusPhase BUS_STOPPING
public static final BusPhase BUS_CRASHED
Method Detail |
---|
public static BusPhase[] values()
for (BusPhase c : BusPhase.values()) System.out.println(c);
public static BusPhase valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |