public enum Opcode extends Enum<Opcode>
Modifier and Type | Method and Description |
---|---|
byte |
getCode() |
static Opcode |
valueOf(byte code) |
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 TEXT
public static final Opcode BINARY
public static final Opcode CLOSE
public static final Opcode PING
public static final Opcode PONG
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 nullpublic static Opcode valueOf(byte code)
public byte getCode()
Copyright © 2018. All rights reserved.