Class PiOptionalFieldMatch


  • @Beta
    public final class PiOptionalFieldMatch
    extends PiFieldMatch
    Instance of an optional field match in a protocol-independent pipeline. The optional match field behaves like an exact match if specified, otherwise it is logically equivalent to a wildcard match.
    • Constructor Detail

      • PiOptionalFieldMatch

        public PiOptionalFieldMatch​(PiMatchFieldId fieldId,
                                    org.onlab.util.ImmutableByteSequence value)
        Creates an optional field match.
        Parameters:
        fieldId - field identifier
        value - value
    • Method Detail

      • value

        public org.onlab.util.ImmutableByteSequence value()
        Returns the byte sequence value to be matched.
        Returns:
        an immutable byte sequence
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object