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 booleanequals(java.lang.Object o)inthashCode()ImmutableByteSequencemask()Returns the mask used to match this field.java.lang.StringtoString()PiMatchTypetype()Returns the type of match to be performed.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, 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:PiFieldMatchReturns the type of match to be performed.- Specified by:
typein classPiFieldMatch- Returns:
- a match type value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-