Interface MinimumShouldMatchRequireStep<N>
-
- Type Parameters:
N
- The type of the next step (returned byMinimumShouldMatchMoreStep.end()
).
public interface MinimumShouldMatchRequireStep<N>
The step in a "minimum should match" constraint definition where the minimum required number or percentage of should clauses to match can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MinimumShouldMatchMoreStep<N>
thenRequireNumber(int matchingClausesNumber)
MinimumShouldMatchMoreStep<N>
thenRequirePercent(int matchingClausesPercent)
-
-
-
Method Detail
-
thenRequireNumber
MinimumShouldMatchMoreStep<N> thenRequireNumber(int matchingClausesNumber)
- Parameters:
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 Definition of the minimum for details and possible values, in particular negative values.- Returns:
- The next step.
-
thenRequirePercent
MinimumShouldMatchMoreStep<N> thenRequirePercent(int matchingClausesPercent)
- Parameters:
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 Definition of the minimum for details and possible values, in particular negative values.- Returns:
- The next step.
-
-