public static enum PingPongPacket.PacketType extends java.lang.Enum<PingPongPacket.PacketType> implements IntegerPacketType
Modifier and Type | Field and Description |
---|---|
static IntegerPacketTypeMap<PingPongPacket.PacketType> |
intToType |
Modifier and Type | Method and Description |
---|---|
int |
getInt() |
static PingPongPacket.PacketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PingPongPacket.PacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PingPongPacket.PacketType TEST_PING
public static final PingPongPacket.PacketType TEST_PONG
public static final IntegerPacketTypeMap<PingPongPacket.PacketType> intToType
public static PingPongPacket.PacketType[] values()
for (PingPongPacket.PacketType c : PingPongPacket.PacketType.values()) System.out.println(c);
public static PingPongPacket.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 int getInt()
getInt
in interface IntegerType
this
.