public enum ComponentState extends Enum<ComponentState>
Enum Constant and Description |
---|
INSTANTIATED |
KILLED |
KILLING |
PAUSED |
PAUSING |
RESETED |
RESETTING |
RESUMING |
RUNNING |
STARTING |
STARTING_PAUSED |
STOPPED |
STOPPING |
Modifier and Type | Method and Description |
---|---|
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(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.
|
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
public static ComponentState[] values()
for (ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState 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 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
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.