requireIfValue

fun <U> requireIfValue(ref: KProperty<U>, predicate: (U?) -> Boolean): CountBuilder(source)

Requires that this count option be present when the specified property matches the given predicate.