java.io.Serializable, java.lang.Comparable<PacketType>public enum PacketType extends java.lang.Enum<PacketType>
| Enum Constant | Description |
|---|---|
AUTH |
|
AUTH_RESPONSE |
|
PING |
|
PUSH |
|
REQUEST |
|
RESPONSE |
| Modifier and Type | Method | Description |
|---|---|---|
static PacketType |
getById(byte id) |
|
byte |
getId() |
|
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 AUTH
public static final PacketType AUTH_RESPONSE
public static final PacketType PING
public static final PacketType REQUEST
public static final PacketType RESPONSE
public static final PacketType PUSH
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 getById(byte id)
public byte getId()
Copyright © 2018. All rights reserved.