Package org.onosproject.cpman
Enum ControlMessage.Type
- java.lang.Object
-
- java.lang.Enum<ControlMessage.Type>
-
- org.onosproject.cpman.ControlMessage.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ControlMessage.Type>
- Enclosing interface:
- ControlMessage
public static enum ControlMessage.Type extends Enum<ControlMessage.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOW_MOD_PACKET
FLOW_REMOVED_PACKET
INBOUND_PACKET
OUTBOUND_PACKET
REPLY_PACKET
REQUEST_PACKET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ControlMessage.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ControlMessage.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INBOUND_PACKET
public static final ControlMessage.Type INBOUND_PACKET
-
OUTBOUND_PACKET
public static final ControlMessage.Type OUTBOUND_PACKET
-
FLOW_MOD_PACKET
public static final ControlMessage.Type FLOW_MOD_PACKET
-
FLOW_REMOVED_PACKET
public static final ControlMessage.Type FLOW_REMOVED_PACKET
-
REQUEST_PACKET
public static final ControlMessage.Type REQUEST_PACKET
-
REPLY_PACKET
public static final ControlMessage.Type REPLY_PACKET
-
-
Method Detail
-
values
public static ControlMessage.Type[] 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 (ControlMessage.Type c : ControlMessage.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlMessage.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-