udt.packets
Enum ControlPacket.ControlPacketType

java.lang.Object
  extended by java.lang.Enum<ControlPacket.ControlPacketType>
      extended by udt.packets.ControlPacket.ControlPacketType
All Implemented Interfaces:
Serializable, Comparable<ControlPacket.ControlPacketType>
Enclosing class:
ControlPacket

public static enum ControlPacket.ControlPacketType
extends Enum<ControlPacket.ControlPacketType>


Enum Constant Summary
ACK
           
ACK2
           
CONNECTION_HANDSHAKE
           
KEEP_ALIVE
           
MESSAGE_DROP_REQUEST
           
NAK
           
SHUTDOWN
           
UNUNSED_1
           
UNUNSED_2
           
UNUNSED_3
           
UNUNSED_4
           
UNUNSED_5
           
UNUNSED_6
           
UNUNSED_7
           
UNUNSED_8
           
USER_DEFINED
           
 
Method Summary
static ControlPacket.ControlPacketType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ControlPacket.ControlPacketType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTION_HANDSHAKE

public static final ControlPacket.ControlPacketType CONNECTION_HANDSHAKE

KEEP_ALIVE

public static final ControlPacket.ControlPacketType KEEP_ALIVE

ACK

public static final ControlPacket.ControlPacketType ACK

NAK

public static final ControlPacket.ControlPacketType NAK

UNUNSED_1

public static final ControlPacket.ControlPacketType UNUNSED_1

SHUTDOWN

public static final ControlPacket.ControlPacketType SHUTDOWN

ACK2

public static final ControlPacket.ControlPacketType ACK2

MESSAGE_DROP_REQUEST

public static final ControlPacket.ControlPacketType MESSAGE_DROP_REQUEST

UNUNSED_2

public static final ControlPacket.ControlPacketType UNUNSED_2

UNUNSED_3

public static final ControlPacket.ControlPacketType UNUNSED_3

UNUNSED_4

public static final ControlPacket.ControlPacketType UNUNSED_4

UNUNSED_5

public static final ControlPacket.ControlPacketType UNUNSED_5

UNUNSED_6

public static final ControlPacket.ControlPacketType UNUNSED_6

UNUNSED_7

public static final ControlPacket.ControlPacketType UNUNSED_7

UNUNSED_8

public static final ControlPacket.ControlPacketType UNUNSED_8

USER_DEFINED

public static final ControlPacket.ControlPacketType USER_DEFINED
Method Detail

values

public static ControlPacket.ControlPacketType[] 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 (ControlPacket.ControlPacketType c : ControlPacket.ControlPacketType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ControlPacket.ControlPacketType 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 name
NullPointerException - if the argument is null


Copyright © 2013 LittleShoot. All Rights Reserved.