|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ComponentState> cz.cuni.amis.pogamut.base.component.controller.ComponentState
public enum ComponentState
Enum Constant Summary | |
---|---|
INSTANTIATED
|
|
KILLED
|
|
KILLING
|
|
PAUSED
|
|
PAUSING
|
|
RESETED
|
|
RESETTING
|
|
RESUMING
|
|
RUNNING
|
|
STARTING
|
|
STARTING_PAUSED
|
|
STOPPED
|
|
STOPPING
|
Method Summary | |
---|---|
static boolean |
inside(ComponentState state,
ComponentState... inside)
Tests whether 'state' is inside 'inside'. |
static boolean |
notInside(ComponentState state,
ComponentState... inside)
Wether 'state' is not part of 'inside'. |
static boolean |
partOf(ComponentState[] states,
ComponentState... inside)
Returns true if one state from 'states' is found 'inside', O(n) complexity. |
static ComponentState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ComponentState[] |
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 ComponentState INSTANTIATED
public static final ComponentState STARTING
public static final ComponentState STARTING_PAUSED
public static final ComponentState RUNNING
public static final ComponentState PAUSING
public static final ComponentState PAUSED
public static final ComponentState RESUMING
public static final ComponentState STOPPING
public static final ComponentState STOPPED
public static final ComponentState KILLING
public static final ComponentState KILLED
public static final ComponentState RESETTING
public static final ComponentState RESETED
Method Detail |
---|
public static ComponentState[] values()
for (ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState 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 name
java.lang.NullPointerException
- if the argument is nullpublic static boolean inside(ComponentState state, ComponentState... inside)
state
- inside
-
public static boolean partOf(ComponentState[] states, ComponentState... inside)
states
- inside
-
public static boolean notInside(ComponentState state, ComponentState... inside)
state
- inside
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |