public static enum Dhcp.OpCode extends Enum<Dhcp.OpCode> implements ProtocolEnum
| Enum Constant and Description |
|---|
BOOT_REPLY
Boot reply.
|
BOOT_REQ
Boot request.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static Dhcp.OpCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dhcp.OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dhcp.OpCode BOOT_REQ
public static final Dhcp.OpCode BOOT_REPLY
public static Dhcp.OpCode[] values()
for (Dhcp.OpCode c : Dhcp.OpCode.values()) System.out.println(c);
public static Dhcp.OpCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int code()
ProtocolEnumcode in interface ProtocolEnumCopyright © 2014. All Rights Reserved.