public enum WebSocketEventType extends java.lang.Enum<WebSocketEventType>
Modifier and Type | Method and Description |
---|---|
static WebSocketEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketEventType OPEN
public static final WebSocketEventType CLOSE
public static final WebSocketEventType ERROR
public static final WebSocketEventType MESSAGE
public static WebSocketEventType[] values()
for (WebSocketEventType c : WebSocketEventType.values()) System.out.println(c);
public static WebSocketEventType 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