|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PacketType>
it.jnrpe.net.PacketType
public enum PacketType
Enumeration of all the supported packet types.
Enum Constant Summary | |
---|---|
QUERY
Id code for a packet containing a query. |
|
RESPONSE
Id code for a packet containing a response. |
|
UNKNOWN
Id code for an unknown packet type. |
Method Summary | |
---|---|
static PacketType |
fromIntValue(int value)
Converts from the protocol int value representing the state to the enumeration constant. |
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PacketType QUERY
public static final PacketType RESPONSE
public static final PacketType UNKNOWN
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic int intValue()
public static PacketType fromIntValue(int value)
value
- The int value state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |