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