private static enum PlainServerMechanism.State extends java.lang.Enum<PlainServerMechanism.State>
Enum Constant and Description |
---|
ERROR_COMMAND_SENT |
READY |
SENDING_ERROR |
SENDING_READY |
SENDING_WELCOME |
WAITING_FOR_HELLO |
WAITING_FOR_INITIATE |
WAITING_FOR_ZAP_REPLY |
Modifier and Type | Method and Description |
---|---|
static PlainServerMechanism.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlainServerMechanism.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlainServerMechanism.State WAITING_FOR_HELLO
public static final PlainServerMechanism.State SENDING_WELCOME
public static final PlainServerMechanism.State WAITING_FOR_INITIATE
public static final PlainServerMechanism.State SENDING_READY
public static final PlainServerMechanism.State WAITING_FOR_ZAP_REPLY
public static final PlainServerMechanism.State SENDING_ERROR
public static final PlainServerMechanism.State ERROR_COMMAND_SENT
public static final PlainServerMechanism.State READY
public static PlainServerMechanism.State[] values()
for (PlainServerMechanism.State c : PlainServerMechanism.State.values()) System.out.println(c);
public static PlainServerMechanism.State 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 null