Enum L4ModificationInstruction.L4SubType
- java.lang.Object
-
- java.lang.Enum<L4ModificationInstruction.L4SubType>
-
- org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<L4ModificationInstruction.L4SubType>
- Enclosing class:
- L4ModificationInstruction
public static enum L4ModificationInstruction.L4SubType extends java.lang.Enum<L4ModificationInstruction.L4SubType>
Represents the type of traffic treatment.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static L4ModificationInstruction.L4SubType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static L4ModificationInstruction.L4SubType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCP_SRC
public static final L4ModificationInstruction.L4SubType TCP_SRC
TCP src modification.
-
TCP_DST
public static final L4ModificationInstruction.L4SubType TCP_DST
TCP dst modification.
-
UDP_SRC
public static final L4ModificationInstruction.L4SubType UDP_SRC
UDP src modification.
-
UDP_DST
public static final L4ModificationInstruction.L4SubType UDP_DST
UDP dst modification.
-
-
Method Detail
-
values
public static L4ModificationInstruction.L4SubType[] 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 (L4ModificationInstruction.L4SubType c : L4ModificationInstruction.L4SubType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static L4ModificationInstruction.L4SubType 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
-
-