Package org.smallmind.nutsnbolts.util
Enum ComponentStatus
- java.lang.Object
-
- java.lang.Enum<ComponentStatus>
-
- org.smallmind.nutsnbolts.util.ComponentStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ComponentStatus>
public enum ComponentStatus extends Enum<ComponentStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIALIZEDINITIALIZINGSTARTEDSTARTINGSTOPPEDSTOPPINGTERMINATEDTERMINATINGUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()static ComponentStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ComponentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZING
public static final ComponentStatus INITIALIZING
-
INITIALIZED
public static final ComponentStatus INITIALIZED
-
STARTING
public static final ComponentStatus STARTING
-
STARTED
public static final ComponentStatus STARTED
-
STOPPING
public static final ComponentStatus STOPPING
-
STOPPED
public static final ComponentStatus STOPPED
-
TERMINATING
public static final ComponentStatus TERMINATING
-
TERMINATED
public static final ComponentStatus TERMINATED
-
UNKNOWN
public static final ComponentStatus UNKNOWN
-
-
Method Detail
-
values
public static ComponentStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ComponentStatus c : ComponentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComponentStatus valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPriority
public int getPriority()
-
-