public enum WebSocketEvent extends Enum<WebSocketEvent>
| Enum Constant and Description |
|---|
ON_CLOSE |
ON_CONNECT |
ON_ERROR |
ON_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketEvent ON_CONNECT
public static final WebSocketEvent ON_ERROR
public static final WebSocketEvent ON_MESSAGE
public static final WebSocketEvent ON_CLOSE
public static WebSocketEvent[] values()
for (WebSocketEvent c : WebSocketEvent.values()) System.out.println(c);
public static WebSocketEvent 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 © 2023 flmelody. All rights reserved.