Package io.engineblock.activityapi.core
Enum RunState
- java.lang.Object
-
- java.lang.Enum<RunState>
-
- io.engineblock.activityapi.core.RunState
-
-
Method Summary
Modifier and Type Method Description booleancanTransitionTo(RunState to)java.lang.StringgetCode()static RunStatevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
Uninitialized
public static final RunState Uninitialized
-
Starting
public static final RunState Starting
-
Running
public static final RunState Running
-
Finished
public static final RunState Finished
-
Stopping
public static final RunState Stopping
-
Stopped
public static final RunState Stopped
-
-
Method Detail
-
values
public static RunState[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RunState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public java.lang.String getCode()
-
canTransitionTo
public boolean canTransitionTo(RunState to)
-
-