/** * Add a default <a href="MinimumShouldMatchContext.html#minimumshouldmatch">"minimumShouldMatch" constraint</a>. * * @param matchingClausesNumber A definition of the number of "should" clauses that have to match. * If positive, it is the number of clauses that have to match. * See <a href="MinimumShouldMatchContext.html#minimumshouldmatch-minimum">Definition of the minimum</a> * for details and possible values, in particular negative values. * @return {@code this}, for method chaining. */ default BooleanJunctionPredicateContext minimumShouldMatchNumber(int matchingClausesNumber) { return minimumShouldMatch() .ifMoreThan( 0 ).thenRequireNumber( matchingClausesNumber ) .end(); }
/** * Add a default <a href="MinimumShouldMatchContext.html#minimumshouldmatch">"minimumShouldMatch" constraint</a>. * * @param matchingClausesPercent A definition of the number of "should" clauses that have to match, as a percentage. * If positive, it is the percentage of the total number of "should" clauses that have to match. * See <a href="MinimumShouldMatchContext.html#minimumshouldmatch-minimum">Definition of the minimum</a> * for details and possible values, in particular negative values. * @return {@code this}, for method chaining. */ default BooleanJunctionPredicateContext minimumShouldMatchPercent(int matchingClausesPercent) { return minimumShouldMatch() .ifMoreThan( 0 ).thenRequirePercent( matchingClausesPercent ) .end(); }
/** * Add a default <a href="MinimumShouldMatchContext.html#minimumshouldmatch">"minimumShouldMatch" constraint</a>. * * @param matchingClausesNumber A definition of the number of "should" clauses that have to match. * If positive, it is the number of clauses that have to match. * See <a href="MinimumShouldMatchContext.html#minimumshouldmatch-minimum">Definition of the minimum</a> * for details and possible values, in particular negative values. * @return {@code this}, for method chaining. */ default BooleanJunctionPredicateContext minimumShouldMatchNumber(int matchingClausesNumber) { return minimumShouldMatch() .ifMoreThan( 0 ).thenRequireNumber( matchingClausesNumber ) .end(); }
/** * Add a default <a href="MinimumShouldMatchContext.html#minimumshouldmatch">"minimumShouldMatch" constraint</a>. * * @param matchingClausesPercent A definition of the number of "should" clauses that have to match, as a percentage. * If positive, it is the percentage of the total number of "should" clauses that have to match. * See <a href="MinimumShouldMatchContext.html#minimumshouldmatch-minimum">Definition of the minimum</a> * for details and possible values, in particular negative values. * @return {@code this}, for method chaining. */ default BooleanJunctionPredicateContext minimumShouldMatchPercent(int matchingClausesPercent) { return minimumShouldMatch() .ifMoreThan( 0 ).thenRequirePercent( matchingClausesPercent ) .end(); }