MinimumShouldMatch

Types

Link copied to clipboard

A list of pairs where the first value is a positive integer. If the number of matched clauses is greater than it then a specification from the second value is applied.

Link copied to clipboard
data class Count(val count: Int) : MinimumShouldMatch.Simple

A fixed number of matched clauses. Can be negative that means a number of optional clauses.

Link copied to clipboard
data class Percent(val percent: Int) : MinimumShouldMatch.Simple

A percentage of the total number of clauses should be necessary.

Link copied to clipboard
abstract class Simple : MinimumShouldMatch

Functions

Link copied to clipboard
abstract fun toValue(): Any