Class PiLpmFieldMatch


  • @Beta
    public final class PiLpmFieldMatch
    extends PiFieldMatch
    Instance of a longest-prefix field match in a protocol-independent pipeline.
    • Constructor Detail

      • PiLpmFieldMatch

        public PiLpmFieldMatch​(PiMatchFieldId fieldId,
                               ImmutableByteSequence value,
                               int prefixLength)
        Creates a new LPM field match.
        Parameters:
        fieldId - field identifier
        value - value
        prefixLength - prefix length
    • Method Detail

      • value

        public ImmutableByteSequence value()
        Returns the value matched by this field.
        Returns:
        a byte sequence value
      • prefixLength

        public int prefixLength()
        Returns the prefix length to be matched.
        Returns:
        an integer value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object