Package org.onlab.packet.dhcp
Enum Dhcp6Duid.DuidType
- java.lang.Object
-
- java.lang.Enum<Dhcp6Duid.DuidType>
-
- org.onlab.packet.dhcp.Dhcp6Duid.DuidType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Dhcp6Duid.DuidType>
- Enclosing class:
- Dhcp6Duid
public static enum Dhcp6Duid.DuidType extends java.lang.Enum<Dhcp6Duid.DuidType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getValue()
static Dhcp6Duid.DuidType
of(short type)
static Dhcp6Duid.DuidType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Dhcp6Duid.DuidType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUID_LLT
public static final Dhcp6Duid.DuidType DUID_LLT
-
DUID_EN
public static final Dhcp6Duid.DuidType DUID_EN
-
DUID_LL
public static final Dhcp6Duid.DuidType DUID_LL
-
DUID_UUID
public static final Dhcp6Duid.DuidType DUID_UUID
-
-
Method Detail
-
values
public static Dhcp6Duid.DuidType[] 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 (Dhcp6Duid.DuidType c : Dhcp6Duid.DuidType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dhcp6Duid.DuidType 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 namejava.lang.NullPointerException
- if the argument is null
-
getValue
public short getValue()
-
of
public static Dhcp6Duid.DuidType of(short type)
-
-