public enum PacketType extends java.lang.Enum<PacketType>
Enum Constant and Description |
---|
ABORT |
AUTH_KEY |
CLOSE |
DATA |
POINT |
POINT_HIERARCHY |
POINT_UPDATE |
RANGE_COUNT |
TEST |
VERSION |
Modifier and Type | Field and Description |
---|---|
private byte |
id |
Modifier and Type | Method and Description |
---|---|
byte |
getId() |
static PacketType |
getPacketType(byte id) |
static PacketType |
valueOf(java.lang.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 VERSION
public static final PacketType AUTH_KEY
public static final PacketType POINT
public static final PacketType DATA
public static final PacketType CLOSE
public static final PacketType ABORT
public static final PacketType TEST
public static final PacketType RANGE_COUNT
public static final PacketType POINT_UPDATE
public static final PacketType POINT_HIERARCHY
public static PacketType[] values()
for (PacketType c : PacketType.values()) System.out.println(c);
public static PacketType 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 static PacketType getPacketType(byte id) throws PersistentProtocolException
PersistentProtocolException
public byte getId()