public enum RunState extends Enum<RunState>
| Enum Constant and Description |
|---|
Finished |
Running |
Starting |
Stopped |
Stopping |
Uninitialized |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransitionTo(RunState to) |
String |
getCode() |
static RunState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunState Uninitialized
public static final RunState Starting
public static final RunState Running
public static final RunState Finished
public static final RunState Stopping
public static final RunState Stopped
public static RunState[] values()
for (RunState c : RunState.values()) System.out.println(c);
public static RunState 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 getCode()
public boolean canTransitionTo(RunState to)
Copyright © 2017. All rights reserved.