Class L4ModificationInstruction.ModTransportPortInstruction
- java.lang.Object
-
- org.onosproject.net.flow.instructions.L4ModificationInstruction
-
- org.onosproject.net.flow.instructions.L4ModificationInstruction.ModTransportPortInstruction
-
- All Implemented Interfaces:
Instruction
- Enclosing class:
- L4ModificationInstruction
public static final class L4ModificationInstruction.ModTransportPortInstruction extends L4ModificationInstruction
Represents a L4 src/dst modification instruction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.net.flow.instructions.L4ModificationInstruction
L4ModificationInstruction.L4SubType, L4ModificationInstruction.ModTransportPortInstruction
-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.instructions.Instruction
Instruction.Type
-
-
Constructor Summary
Constructors Constructor Description ModTransportPortInstruction(L4ModificationInstruction.L4SubType subtype, TpPort port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
TpPort
port()
L4ModificationInstruction.L4SubType
subtype()
Returns the subtype of the modification instruction.java.lang.String
toString()
-
Methods inherited from class org.onosproject.net.flow.instructions.L4ModificationInstruction
type
-
-
-
-
Constructor Detail
-
ModTransportPortInstruction
public ModTransportPortInstruction(L4ModificationInstruction.L4SubType subtype, TpPort port)
-
-
Method Detail
-
subtype
public L4ModificationInstruction.L4SubType subtype()
Description copied from class:L4ModificationInstruction
Returns the subtype of the modification instruction.- Specified by:
subtype
in classL4ModificationInstruction
- Returns:
- type of instruction
-
port
public TpPort port()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-