@Beta public final class PiTernaryFieldMatch extends PiFieldMatch
| Constructor and Description |
|---|
PiTernaryFieldMatch(PiMatchFieldId fieldId,
org.onlab.util.ImmutableByteSequence value,
org.onlab.util.ImmutableByteSequence mask)
Creates a new ternary field match.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
org.onlab.util.ImmutableByteSequence |
mask()
Returns the mask used to match this field.
|
java.lang.String |
toString() |
PiMatchType |
type()
Returns the type of match to be performed.
|
org.onlab.util.ImmutableByteSequence |
value()
Returns the value matched by this field.
|
fieldIdpublic PiTernaryFieldMatch(PiMatchFieldId fieldId, org.onlab.util.ImmutableByteSequence value, org.onlab.util.ImmutableByteSequence mask)
fieldId - field identifiervalue - valuemask - maskpublic org.onlab.util.ImmutableByteSequence value()
public org.onlab.util.ImmutableByteSequence mask()
public PiMatchType type()
PiFieldMatchtype in class PiFieldMatchpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object