public enum PacketVersion extends Enum<PacketVersion>
| Enum Constant and Description |
|---|
VERSION_1
Packet version 1: no longer supported.
|
VERSION_2
Packet version 2.
|
| Modifier and Type | Method and Description |
|---|---|
static PacketVersion |
fromIntValue(int iIntValue)
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.
|
public static final PacketVersion VERSION_1
public static final PacketVersion VERSION_2
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 nameNullPointerException - if the argument is nullpublic int intValue()
public static PacketVersion fromIntValue(int iIntValue)
iIntValue - The int value to be convertedPacketVersion enum. Null if not foundCopyright © 2013. All Rights Reserved.