public enum PacketType extends Enum<PacketType>
| Enum Constant and Description |
|---|
ACK |
CONNECT |
DISCONNECT |
ERROR |
EVENT |
HEARTBEAT |
JSON |
MESSAGE |
NOOP |
| 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[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketType DISCONNECT
public static final PacketType CONNECT
public static final PacketType HEARTBEAT
public static final PacketType MESSAGE
public static final PacketType JSON
public static final PacketType EVENT
public static final PacketType ACK
public static final PacketType ERROR
public static final PacketType NOOP
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)
Copyright © 2012–2014. All rights reserved.