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 booleanequals(Object o)inthashCode()ImmutableByteSequencehighValue()Returns the high value of this range field match.ImmutableByteSequencelowValue()Returns the low value of this range field match.StringtoString()PiMatchTypetype()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:PiFieldMatchReturns the type of match to be performed.- Specified by:
typein 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
-
-