public enum DHCPPacketType extends java.lang.Enum<DHCPPacketType>
Enum Constant and Description |
---|
DHCPACK |
DHCPDECLINE |
DHCPDISCOVER |
DHCPFORCERENEW |
DHCPINFORM |
DHCPLEASEACTIVE |
DHCPLEASEQUERY |
DHCPLEASEUNASSIGNED |
DHCPLEASEUNKNOWN |
DHCPNAK |
DHCPOFFER |
DHCPRELEASE |
DHCPREQUEST |
Modifier and Type | Field and Description |
---|---|
protected int |
value |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final DHCPPacketType DHCPDISCOVER
public static final DHCPPacketType DHCPOFFER
public static final DHCPPacketType DHCPREQUEST
public static final DHCPPacketType DHCPDECLINE
public static final DHCPPacketType DHCPACK
public static final DHCPPacketType DHCPNAK
public static final DHCPPacketType DHCPRELEASE
public static final DHCPPacketType DHCPINFORM
public static final DHCPPacketType DHCPFORCERENEW
public static final DHCPPacketType DHCPLEASEQUERY
public static final DHCPPacketType DHCPLEASEUNASSIGNED
public static final DHCPPacketType DHCPLEASEUNKNOWN
public static final DHCPPacketType DHCPLEASEACTIVE
public static DHCPPacketType[] values()
for (DHCPPacketType c : DHCPPacketType.values()) System.out.println(c);
public static DHCPPacketType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<DHCPPacketType>
public static DHCPPacketType getType(int value)