Class PiCriterion

  • All Implemented Interfaces:
    Criterion

    @Beta
    public final class PiCriterion
    extends java.lang.Object
    implements Criterion
    Protocol-independent criterion.
    • Method Detail

      • fieldMatches

        public java.util.Collection<PiFieldMatch> fieldMatches()
        Returns all protocol-independent field matches defined by this criterion.
        Returns:
        collection of match parameters
      • 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
      • type

        public Criterion.Type type()
        Description copied from interface: Criterion
        Returns the type of criterion.
        Specified by:
        type in interface Criterion
        Returns:
        type of criterion
      • 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 PiCriterion.Builder builder()
        Returns the PiCriterion builder.
        Returns:
        PiCriterion builder
      • builder

        public static PiCriterion.Builder builder​(PiCriterion piCriterion)
        Returns the PiCriterion builder initialized by the given PiCriterion.
        Parameters:
        piCriterion - the input PiCriterion
        Returns:
        PiCriterion builder