Class PiRangeFieldMatch


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

      Constructors 
      Constructor Description
      PiRangeFieldMatch​(PiMatchFieldId fieldId, org.onlab.util.ImmutableByteSequence lowValue, org.onlab.util.ImmutableByteSequence highValue)
      Creates a new range field match for the given low and high value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      org.onlab.util.ImmutableByteSequence highValue()
      Returns the high value of this range field match.
      org.onlab.util.ImmutableByteSequence lowValue()
      Returns the low value of this range field match.
      java.lang.String toString()  
      PiMatchType type()
      Returns the type of match to be performed.
      • Methods inherited from class java.lang.Object

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

      • PiRangeFieldMatch

        public PiRangeFieldMatch​(PiMatchFieldId fieldId,
                                 org.onlab.util.ImmutableByteSequence lowValue,
                                 org.onlab.util.ImmutableByteSequence highValue)
        Creates a new range field match for the given low and high value.
        Parameters:
        fieldId - field identifier
        lowValue - low value
        highValue - high value
    • Method Detail

      • lowValue

        public org.onlab.util.ImmutableByteSequence lowValue()
        Returns the low value of this range field match.
        Returns:
        low value
      • highValue

        public org.onlab.util.ImmutableByteSequence highValue()
        Returns the high value of this range field match.
        Returns:
        high 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