Interface ComparisonRuleBuilder.ChooseMatcher

  • Enclosing interface:
    ComparisonRuleBuilder

    @API(status=EXPERIMENTAL,
         since="1.2.0")
    public static interface ComparisonRuleBuilder.ChooseMatcher
    Allows to choose the comparison for the value.
    Author:
    Simon Taddiken
    • Method Detail

      • ignore

        ComparisonRuleBuilder ignore()
        Ignores values during comparison.
        Returns:
        DSL object for specifying further rules.
      • mustMatch

        ComparisonRuleBuilder mustMatch​(Pattern regex)
        String representation of the value must match the given regex.
        Parameters:
        regex - The regex.
        Returns:
        DSL object for specifying further rules.
      • mustMatch

        ComparisonRuleBuilder mustMatch​(Predicate<? super Object> predicate)
        The value must match the given predicate.
        Parameters:
        predicate - The predicate.
        Returns:
        DSL object for specifying further rules.