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
Modifier and TypeMethodDescriptionthenRequireNumber
(int matchingClausesNumber) thenRequirePercent
(int matchingClausesPercent)
-
Method Details
-
thenRequireNumber
- 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
- 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.
-