Class PiMatchKey


  • @Beta
    public final class PiMatchKey
    extends java.lang.Object
    Representation of all field matches of an entry of a match+action table of a protocol-independent pipeline.
    • Method Detail

      • fieldMatches

        public java.util.Collection<PiFieldMatch> fieldMatches()
        Returns the collection of field matches of this match key.
        Returns:
        collection of field matches
      • fieldMatch

        public java.util.Optional<PiFieldMatch> fieldMatch​(PiMatchFieldId fieldId)
        If present, returns the field match associated with the given header field identifier.
        Parameters:
        fieldId - field identifier
        Returns:
        optional field match
      • 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
      • builder

        public static PiMatchKey.Builder builder()
        Returns a new builder of match keys.
        Returns:
        match key builder