Enum DDM_INSTANCE_STATE
- java.lang.Object
-
- java.lang.Enum<DDM_INSTANCE_STATE>
-
- org.mases.datadistributionmanager.DDM_INSTANCE_STATE
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DDM_INSTANCE_STATE>
public enum DDM_INSTANCE_STATE extends java.lang.Enum<DDM_INSTANCE_STATE>
State of the instance
-
-
Field Summary
Fields Modifier and Type Field Description int
atomicNumber
java.lang.String
label
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toIntString()
static DDM_INSTANCE_STATE
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DDM_INSTANCE_STATE
valueOfAtomicNumber(int number)
static DDM_INSTANCE_STATE
valueOfLabel(java.lang.String label)
static DDM_INSTANCE_STATE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DDM_INSTANCE_STATE UNKNOWN
Unknown
-
PRIMARY
public static final DDM_INSTANCE_STATE PRIMARY
Primary
-
FOLLOWER
public static final DDM_INSTANCE_STATE FOLLOWER
Follower
-
ALONE
public static final DDM_INSTANCE_STATE ALONE
Alone
-
STOPPING
public static final DDM_INSTANCE_STATE STOPPING
Stopping
-
GOING_ALONE
public static final DDM_INSTANCE_STATE GOING_ALONE
Going alone
-
OBSERVER
public static final DDM_INSTANCE_STATE OBSERVER
Observer
-
COMMAND
public static final DDM_INSTANCE_STATE COMMAND
Command sender
-
-
Method Detail
-
values
public static DDM_INSTANCE_STATE[] 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 (DDM_INSTANCE_STATE c : DDM_INSTANCE_STATE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DDM_INSTANCE_STATE 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
-
valueOfLabel
public static DDM_INSTANCE_STATE valueOfLabel(java.lang.String label)
-
valueOfAtomicNumber
public static DDM_INSTANCE_STATE valueOfAtomicNumber(int number)
-
toIntString
public java.lang.String toIntString()
-
-