Package org.onosproject.net.pi.runtime
Class PiExactFieldMatch
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiFieldMatch
-
- org.onosproject.net.pi.runtime.PiExactFieldMatch
-
@Beta public final class PiExactFieldMatch extends PiFieldMatch
Instance of an exact field match in a protocol-independent pipeline.
-
-
Constructor Summary
Constructors Constructor Description PiExactFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value)Creates an exact field match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()StringtoString()PiMatchTypetype()Returns the type of match to be performed.ImmutableByteSequencevalue()Returns the byte sequence value to be matched.-
Methods inherited from class org.onosproject.net.pi.runtime.PiFieldMatch
fieldId
-
-
-
-
Constructor Detail
-
PiExactFieldMatch
public PiExactFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value)
Creates an exact field match.- Parameters:
fieldId- field identifiervalue- 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
-
value
public ImmutableByteSequence value()
Returns the byte sequence value to be matched.- Returns:
- an immutable byte sequence
-
-