Class PiCriterion

  • All Implemented Interfaces:
    Criterion

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

      • fieldMatches

        public Collection<PiFieldMatch> fieldMatches()
        Returns all protocol-independent field matches defined by this criterion.
        Returns:
        collection of match parameters
      • fieldMatch

        public 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class 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