public static enum ServerSocket.State extends Enum<ServerSocket.State>
Enum Constant and Description |
---|
CLOSED
A state the underlying connection is disconnected temporarily.
|
DELETED
A state where it is deleted from the server because of long periods
of disconnection.
|
OPENED
A state where the communication is possible.
|
Modifier and Type | Method and Description |
---|---|
static ServerSocket.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerSocket.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerSocket.State OPENED
public static final ServerSocket.State CLOSED
public static final ServerSocket.State DELETED
public static ServerSocket.State[] values()
for (ServerSocket.State c : ServerSocket.State.values()) System.out.println(c);
public static ServerSocket.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright 2015, The Cettia Project