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, org.onlab.util.ImmutableByteSequence value)
Creates an exact field match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
toString()
PiMatchType
type()
Returns the type of match to be performed.org.onlab.util.ImmutableByteSequence
value()
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, org.onlab.util.ImmutableByteSequence value)
Creates an exact field match.- Parameters:
fieldId
- field identifiervalue
- 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
-
value
public org.onlab.util.ImmutableByteSequence value()
Returns the byte sequence value to be matched.- Returns:
- an immutable byte sequence
-
-