public enum PacketType extends Enum<PacketType>
Enum Constant and Description |
---|
QUERY
Id code for a packet containing a query.
|
RESPONSE
Id code for a packet containing a response.
|
Modifier and Type | Method and Description |
---|---|
static PacketType |
fromIntValue(int iIntValue) |
int |
intValue()
Returns the int value of the enum.
|
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 QUERY
public static final PacketType RESPONSE
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 intValue()
public static PacketType fromIntValue(int iIntValue)
Copyright © 2013. All Rights Reserved.