public static enum CommandMetaData.Mode extends java.lang.Enum<CommandMetaData.Mode>
Enum Constant and Description |
---|
MASTER |
MASTER_OR_SLAVE |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(boolean slaveMode) |
static CommandMetaData.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandMetaData.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandMetaData.Mode MASTER
public static final CommandMetaData.Mode MASTER_OR_SLAVE
public static CommandMetaData.Mode[] values()
for (CommandMetaData.Mode c : CommandMetaData.Mode.values()) System.out.println(c);
public static CommandMetaData.Mode 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 boolean isSupported(boolean slaveMode)