Class DefaultNextTreatment
- java.lang.Object
-
- org.onosproject.net.flowobjective.DefaultNextTreatment
-
- All Implemented Interfaces:
NextTreatment
public final class DefaultNextTreatment extends java.lang.Object implements NextTreatment
Represents a next action specified by traffic treatment.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.NextTreatment
NextTreatment.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
static DefaultNextTreatment
of(TrafficTreatment treatment)
Returns an instance of DefaultNextTreatment with given traffic treatment.java.lang.String
toString()
TrafficTreatment
treatment()
Returns traffic treatment.NextTreatment.Type
type()
Type of this next action.
-
-
-
Method Detail
-
treatment
public TrafficTreatment treatment()
Returns traffic treatment.- Returns:
- traffic treatment.
-
of
public static DefaultNextTreatment of(TrafficTreatment treatment)
Returns an instance of DefaultNextTreatment with given traffic treatment.- Parameters:
treatment
- traffic treatment- Returns:
- an instance of DefaultNextTreatment
-
type
public NextTreatment.Type type()
Description copied from interface:NextTreatment
Type of this next action.- Specified by:
type
in interfaceNextTreatment
- Returns:
- type
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-