public enum CommandType extends java.lang.Enum<CommandType>
Enum Constant and Description |
---|
DIE |
IDENTIFY |
START_PROCESS |
START_THREAD |
STOP |
STOP_ALL |
Modifier and Type | Method and Description |
---|---|
static CommandType |
getCommandType(java.lang.String value)
Obtain the enum from the value.
|
static java.lang.String |
getName(java.lang.String value)
Obtain the name from the value.
|
java.lang.String |
getValue()
Get the enum's value.
|
static CommandType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandType START_THREAD
public static final CommandType START_PROCESS
public static final CommandType STOP
public static final CommandType STOP_ALL
public static final CommandType DIE
public static final CommandType IDENTIFY
public static CommandType[] values()
for (CommandType c : CommandType.values()) System.out.println(c);
public static CommandType 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 java.lang.String getValue()
public static java.lang.String getName(java.lang.String value)
value
- the value to match.null
.public static CommandType getCommandType(java.lang.String value)
value
- the value to match.null
.