public static enum Dhcp.Flag extends Enum<Dhcp.Flag> implements ProtocolEnum
| Enum Constant and Description |
|---|
BROADCAST
Broadcast flag.
|
UNICAST
Unicast flag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static Dhcp.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dhcp.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dhcp.Flag UNICAST
public static final Dhcp.Flag BROADCAST
public static Dhcp.Flag[] values()
for (Dhcp.Flag c : Dhcp.Flag.values()) System.out.println(c);
public static Dhcp.Flag 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.