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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object