Package org.onlab.packet
Enum DHCP6.MsgType
- java.lang.Object
-
- java.lang.Enum<DHCP6.MsgType>
-
- org.onlab.packet.DHCP6.MsgType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DHCP6.MsgType>
- Enclosing class:
- DHCP6
public static enum DHCP6.MsgType extends java.lang.Enum<DHCP6.MsgType>
DHCPv6 message type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVERTISE
CONFIRM
DECLINE
INFORMATION_REQUEST
LEASEQUERY
LEASEQUERY_REPLY
REBIND
RECONFIGURE
RELAY_FORW
RELAY_REPL
RELEASE
RENEW
REPLY
REQUEST
SOLICIT
-
Field Summary
Fields Modifier and Type Field Description protected byte
value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getMsgTypeStr(DHCP6.MsgType msgType)
static DHCP6.MsgType
getType(int value)
byte
value()
static DHCP6.MsgType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DHCP6.MsgType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOLICIT
public static final DHCP6.MsgType SOLICIT
-
ADVERTISE
public static final DHCP6.MsgType ADVERTISE
-
REQUEST
public static final DHCP6.MsgType REQUEST
-
CONFIRM
public static final DHCP6.MsgType CONFIRM
-
RENEW
public static final DHCP6.MsgType RENEW
-
REBIND
public static final DHCP6.MsgType REBIND
-
REPLY
public static final DHCP6.MsgType REPLY
-
RELEASE
public static final DHCP6.MsgType RELEASE
-
DECLINE
public static final DHCP6.MsgType DECLINE
-
RECONFIGURE
public static final DHCP6.MsgType RECONFIGURE
-
INFORMATION_REQUEST
public static final DHCP6.MsgType INFORMATION_REQUEST
-
RELAY_FORW
public static final DHCP6.MsgType RELAY_FORW
-
RELAY_REPL
public static final DHCP6.MsgType RELAY_REPL
-
LEASEQUERY
public static final DHCP6.MsgType LEASEQUERY
-
LEASEQUERY_REPLY
public static final DHCP6.MsgType LEASEQUERY_REPLY
-
-
Method Detail
-
values
public static DHCP6.MsgType[] 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 (DHCP6.MsgType c : DHCP6.MsgType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DHCP6.MsgType 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
-
value
public byte value()
-
getType
public static DHCP6.MsgType getType(int value)
-
getMsgTypeStr
public static java.lang.String getMsgTypeStr(DHCP6.MsgType msgType)
-
-