public enum WSOPCode extends java.lang.Enum<WSOPCode>
Enum Constant | Description |
---|---|
Binary |
|
Close |
|
Continuation |
|
Ping |
|
Pong |
|
Text |
Modifier and Type | Method | Description |
---|---|---|
static WSOPCode |
fromByte(byte b) |
|
byte |
getValue() |
|
static WSOPCode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WSOPCode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WSOPCode Continuation
public static final WSOPCode Text
public static final WSOPCode Binary
public static final WSOPCode Close
public static final WSOPCode Ping
public static final WSOPCode Pong
public static WSOPCode[] values()
for (WSOPCode c : WSOPCode.values()) System.out.println(c);
public static WSOPCode 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 nullpublic byte getValue()
public static WSOPCode fromByte(byte b)