|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PacketVersion>
it.jnrpe.net.PacketVersion
public enum PacketVersion
Enumeration of all the supported packet versions.
| Enum Constant Summary | |
|---|---|
VERSION_1
Packet version 1: no longer supported. |
|
VERSION_2
Packet version 2. |
|
| Method Summary | |
|---|---|
static PacketVersion |
fromIntValue(int value)
Returns the enum corresponding with the given int value. |
int |
intValue()
Returns the int value of the enum. |
static PacketVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PacketVersion[] |
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 PacketVersion VERSION_1
public static final PacketVersion VERSION_2
| Method Detail |
|---|
public static PacketVersion[] values()
for (PacketVersion c : PacketVersion.values()) System.out.println(c);
public static PacketVersion 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 PacketVersion fromIntValue(int value)
value - The int value to be converted
PacketVersion enum. Null if not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||