public enum HintType extends Enum<HintType>
Hint types.| Enum Constant and Description |
|---|
HANDLER
The identity of the packet listener that handled
the Packet-In message.
|
TEST_PACKET
This packet has been identified as a test packet.
|
| Modifier and Type | Method and Description |
|---|---|
static HintType |
decode(int encodedType)
Returns the hint type for the given coded value; or null if not
defined.
|
int |
encodedType()
Returns the type encoded as an int.
|
static String |
typeToString(int code)
Returns a hint type as a string.
|
static HintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HintType HANDLER
public static final HintType TEST_PACKET
public static HintType[] values()
for (HintType c : HintType.values()) System.out.println(c);
public static HintType 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 encodedType()
public static HintType decode(int encodedType)
encodedType - the encoded typepublic static String typeToString(int code)
code - the encoded typeCopyright © 2014. All Rights Reserved.