Class PiLpmFieldMatch


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

      Constructors 
      Constructor Description
      PiLpmFieldMatch​(PiMatchFieldId fieldId, org.onlab.util.ImmutableByteSequence value, int prefixLength)
      Creates a new LPM field match.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      org.onlab.util.ImmutableByteSequence value()
      Returns the value matched by this field.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PiLpmFieldMatch

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

      • value

        public org.onlab.util.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