Package org.onosproject.net.pi.runtime
Class PiRangeFieldMatch
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiFieldMatch
-
- org.onosproject.net.pi.runtime.PiRangeFieldMatch
-
@Beta public final class PiRangeFieldMatch extends PiFieldMatch
Instance of a range field match in a protocol-independent pipeline.
-
-
Constructor Summary
Constructors Constructor Description PiRangeFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence lowValue, ImmutableByteSequence highValue)
Creates a new range field match for the given low and high value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
ImmutableByteSequence
highValue()
Returns the high value of this range field match.ImmutableByteSequence
lowValue()
Returns the low value of this range field match.String
toString()
PiMatchType
type()
Returns the type of match to be performed.-
Methods inherited from class org.onosproject.net.pi.runtime.PiFieldMatch
fieldId
-
-
-
-
Constructor Detail
-
PiRangeFieldMatch
public PiRangeFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence lowValue, ImmutableByteSequence highValue)
Creates a new range field match for the given low and high value.- Parameters:
fieldId
- field identifierlowValue
- low valuehighValue
- high value
-
-
Method Detail
-
type
public PiMatchType type()
Description copied from class:PiFieldMatch
Returns the type of match to be performed.- Specified by:
type
in classPiFieldMatch
- Returns:
- a match type value
-
lowValue
public ImmutableByteSequence lowValue()
Returns the low value of this range field match.- Returns:
- low value
-
highValue
public ImmutableByteSequence highValue()
Returns the high value of this range field match.- Returns:
- high value
-
-