net.floodlightcontroller.packet
Enum DHCPPacketType

java.lang.Object
  extended by java.lang.Enum<DHCPPacketType>
      extended by net.floodlightcontroller.packet.DHCPPacketType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DHCPPacketType>

public enum DHCPPacketType
extends java.lang.Enum<DHCPPacketType>


Enum Constant Summary
DHCPACK
           
DHCPDECLINE
           
DHCPDISCOVER
           
DHCPFORCERENEW
           
DHCPINFORM
           
DHCPLEASEACTIVE
           
DHCPLEASEQUERY
           
DHCPLEASEUNASSIGNED
           
DHCPLEASEUNKNOWN
           
DHCPNAK
           
DHCPOFFER
           
DHCPRELEASE
           
DHCPREQUEST
           
 
Field Summary
protected  int value
           
 
Method Summary
static DHCPPacketType getType(int value)
           
 int getValue()
           
 java.lang.String toString()
           
static DHCPPacketType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DHCPPacketType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DHCPDISCOVER

public static final DHCPPacketType DHCPDISCOVER

DHCPOFFER

public static final DHCPPacketType DHCPOFFER

DHCPREQUEST

public static final DHCPPacketType DHCPREQUEST

DHCPDECLINE

public static final DHCPPacketType DHCPDECLINE

DHCPACK

public static final DHCPPacketType DHCPACK

DHCPNAK

public static final DHCPPacketType DHCPNAK

DHCPRELEASE

public static final DHCPPacketType DHCPRELEASE

DHCPINFORM

public static final DHCPPacketType DHCPINFORM

DHCPFORCERENEW

public static final DHCPPacketType DHCPFORCERENEW

DHCPLEASEQUERY

public static final DHCPPacketType DHCPLEASEQUERY

DHCPLEASEUNASSIGNED

public static final DHCPPacketType DHCPLEASEUNASSIGNED

DHCPLEASEUNKNOWN

public static final DHCPPacketType DHCPLEASEUNKNOWN

DHCPLEASEACTIVE

public static final DHCPPacketType DHCPLEASEACTIVE
Field Detail

value

protected int value
Method Detail

values

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

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

valueOf

public static DHCPPacketType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<DHCPPacketType>

getType

public static DHCPPacketType getType(int value)