| Enum Constant and Description |
|---|
CRASHED |
FINISHED |
INITIAL |
RUNNING |
STARTING |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(IDemoStateVisitor visitor) |
abstract boolean |
isTerminated() |
java.lang.String |
toString() |
static DemoState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DemoState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DemoState INITIAL
public static final DemoState CRASHED
public static final DemoState STARTING
public static final DemoState RUNNING
public static final DemoState FINISHED
public static DemoState[] values()
for (DemoState c : DemoState.values()) System.out.println(c);
public static DemoState 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 nullpublic java.lang.String toString()
toString in class java.lang.Enum<DemoState>public abstract boolean isTerminated()
public abstract void accept(IDemoStateVisitor visitor)
JDemo homepage: http://www.jdemo.de
Copyright © 2003-2012 Markus Gebhard. All Rights Reserved.