protected static enum SimpleWebSocket.State extends Enum<SimpleWebSocket.State>
| Modifier and Type | Method and Description |
|---|---|
static SimpleWebSocket.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleWebSocket.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleWebSocket.State NEW
public static final SimpleWebSocket.State CONNECTED
public static final SimpleWebSocket.State CLOSING
public static final SimpleWebSocket.State CLOSED
public static SimpleWebSocket.State[] values()
for (SimpleWebSocket.State c : SimpleWebSocket.State.values()) System.out.println(c);
public static SimpleWebSocket.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 © 2022 Oracle Corporation. All Rights Reserved.