private static enum NetworkDispatcher.ConnectionState extends java.lang.Enum<NetworkDispatcher.ConnectionState>
Enum Constant and Description |
---|
AWAITING_HANDSHAKE |
CONNECTED |
FINALIZING |
HANDSHAKECOMPLETE |
HANDSHAKING |
OPENING |
Modifier and Type | Method and Description |
---|---|
static NetworkDispatcher.ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkDispatcher.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkDispatcher.ConnectionState OPENING
public static final NetworkDispatcher.ConnectionState AWAITING_HANDSHAKE
public static final NetworkDispatcher.ConnectionState HANDSHAKING
public static final NetworkDispatcher.ConnectionState HANDSHAKECOMPLETE
public static final NetworkDispatcher.ConnectionState FINALIZING
public static final NetworkDispatcher.ConnectionState CONNECTED
public static NetworkDispatcher.ConnectionState[] values()
for (NetworkDispatcher.ConnectionState c : NetworkDispatcher.ConnectionState.values()) System.out.println(c);
public static NetworkDispatcher.ConnectionState 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