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