@Beta public final class PiLpmFieldMatch extends PiFieldMatch
| Constructor and Description |
|---|
PiLpmFieldMatch(PiMatchFieldId fieldId,
ImmutableByteSequence value,
int prefixLength)
Creates a new LPM field match.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
prefixLength()
Returns the prefix length to be matched.
|
java.lang.String |
toString() |
PiMatchType |
type()
Returns the type of match to be performed.
|
ImmutableByteSequence |
value()
Returns the value matched by this field.
|
fieldIdpublic PiLpmFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value, int prefixLength)
fieldId - field identifiervalue - valueprefixLength - prefix lengthpublic PiMatchType type()
PiFieldMatchtype in class PiFieldMatchpublic ImmutableByteSequence value()
public int prefixLength()
public 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