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