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