public enum PacketType extends Enum<PacketType>
| Enum Constant and Description |
|---|
ACK |
BINARY_ACK |
BINARY_EVENT |
CLOSE |
CONNECT |
DISCONNECT |
ERROR |
EVENT |
MESSAGE |
NOOP |
OPEN |
PING |
PONG |
UPGRADE |
| Modifier and Type | Field and Description |
|---|---|
static PacketType[] |
VALUES |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static PacketType |
valueOf(int value) |
static PacketType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketType |
valueOfInner(int value) |
static PacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketType OPEN
public static final PacketType CLOSE
public static final PacketType PING
public static final PacketType PONG
public static final PacketType MESSAGE
public static final PacketType UPGRADE
public static final PacketType NOOP
public static final PacketType CONNECT
public static final PacketType DISCONNECT
public static final PacketType EVENT
public static final PacketType ACK
public static final PacketType ERROR
public static final PacketType BINARY_EVENT
public static final PacketType BINARY_ACK
public static final PacketType[] VALUES
public static PacketType[] values()
for (PacketType c : PacketType.values()) System.out.println(c);
public static PacketType 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 int getValue()
public static PacketType valueOf(int value)
public static PacketType valueOfInner(int value)
Copyright © 2012–2021. All rights reserved.