Package com.iizix.comm
Enum WebSocketServerComm.State
- java.lang.Object
- java.lang.Enum<WebSocketServerComm.State>
- com.iizix.comm.WebSocketServerComm.State
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WebSocketServerComm.State>
- Enclosing class:
- WebSocketServerComm
public static enum WebSocketServerComm.State extends java.lang.Enum<WebSocketServerComm.State>
The state of the connection.
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
FIND_PORT
LISTENING
UNINITIALIZED
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebSocketServerComm.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WebSocketServerComm.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
UNINITIALIZED
public static final WebSocketServerComm.State UNINITIALIZED
FIND_PORT
public static final WebSocketServerComm.State FIND_PORT
LISTENING
public static final WebSocketServerComm.State LISTENING
CLOSED
public static final WebSocketServerComm.State CLOSED
Method Detail
values
public static WebSocketServerComm.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 (WebSocketServerComm.State c : WebSocketServerComm.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 WebSocketServerComm.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