public enum ElementStateEnum extends java.lang.Enum<ElementStateEnum>
Enum Constant and Description |
---|
Aborted |
Aborting |
Activating |
Active |
Canceled |
Cancelling |
Deactivating |
Inactive |
Paused |
Pausing |
Resuming |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning()
Returns true as long as we're not one of the stopped states: aborted, paused, inactive, or canceled.
|
static ElementStateEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ElementStateEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementStateEnum Aborting
public static final ElementStateEnum Aborted
public static final ElementStateEnum Activating
public static final ElementStateEnum Active
public static final ElementStateEnum Deactivating
public static final ElementStateEnum Inactive
public static final ElementStateEnum Pausing
public static final ElementStateEnum Paused
public static final ElementStateEnum Resuming
public static final ElementStateEnum Cancelling
public static final ElementStateEnum Canceled
public static ElementStateEnum[] values()
for (ElementStateEnum c : ElementStateEnum.values()) System.out.println(c);
public static ElementStateEnum 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 boolean isRunning()