Class PiTernaryFieldMatch


  • @Beta
    public final class PiTernaryFieldMatch
    extends PiFieldMatch
    Instance of a ternary field match in a protocol-independent pipeline.
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object