Package org.deepjava.runtime.util
Enum IntPacket.Type
- java.lang.Object
-
- java.lang.Enum<IntPacket.Type>
-
- org.deepjava.runtime.util.IntPacket.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<IntPacket.Type>
,Modified
- Enclosing class:
- IntPacket
public static enum IntPacket.Type extends Enum<IntPacket.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) byte
get()
static IntPacket.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static IntPacket.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final IntPacket.Type None
No packet received.
-
Illegal
public static final IntPacket.Type Illegal
Illegal packet received.
-
Unknown
public static final IntPacket.Type Unknown
Unknown packet header.
-
Int
public static final IntPacket.Type Int
Integer packet header.
-
-
Method Detail
-
values
public static IntPacket.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IntPacket.Type c : IntPacket.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IntPacket.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
byte get()
-
-