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