net.floodlightcontroller.packet
Enum DHCPPacketType
java.lang.Object
java.lang.Enum<DHCPPacketType>
net.floodlightcontroller.packet.DHCPPacketType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DHCPPacketType>
public enum DHCPPacketType
- extends java.lang.Enum<DHCPPacketType>
Field Summary |
protected int |
value
|
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 |
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
value
protected int value
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)