Class PiTernaryFieldMatch


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

      Constructors 
      Constructor Description
      PiTernaryFieldMatch​(PiMatchFieldId fieldId, org.onlab.util.ImmutableByteSequence value, org.onlab.util.ImmutableByteSequence mask)
      Creates a new ternary field match.
    • 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 mask()
      Returns the mask used to match this field.
      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

      • PiTernaryFieldMatch

        public PiTernaryFieldMatch​(PiMatchFieldId fieldId,
                                   org.onlab.util.ImmutableByteSequence value,
                                   org.onlab.util.ImmutableByteSequence mask)
        Creates a new ternary field match.
        Parameters:
        fieldId - field identifier
        value - value
        mask - mask
    • Method Detail

      • value

        public org.onlab.util.ImmutableByteSequence value()
        Returns the value matched by this field.
        Returns:
        an immutable byte sequence
      • mask

        public org.onlab.util.ImmutableByteSequence mask()
        Returns the mask used to match this field.
        Returns:
        an immutable byte sequence
      • 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