public static enum AppRequest.PacketType extends java.lang.Enum<AppRequest.PacketType> implements IntegerPacketType
Enum Constant and Description |
---|
ADMIN_APP_REQUEST |
ANOTHER_APP_REQUEST
Another app request type that is currently not used for anything.
|
APP_REQUEST3 |
APP_REQUEST4 |
DEFAULT_APP_REQUEST
Default app request.
|
META_REQUEST_PACKET |
Modifier and Type | Method and Description |
---|---|
int |
getInt() |
static AppRequest.PacketType |
getPacketType(int type) |
static AppRequest.PacketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AppRequest.PacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppRequest.PacketType DEFAULT_APP_REQUEST
public static final AppRequest.PacketType ANOTHER_APP_REQUEST
public static final AppRequest.PacketType APP_REQUEST3
public static final AppRequest.PacketType APP_REQUEST4
public static final AppRequest.PacketType ADMIN_APP_REQUEST
public static final AppRequest.PacketType META_REQUEST_PACKET
public static AppRequest.PacketType[] values()
for (AppRequest.PacketType c : AppRequest.PacketType.values()) System.out.println(c);
public static AppRequest.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 AppRequest.PacketType getPacketType(int type)
type
- public int getInt()
getInt
in interface IntegerType
this
.