all

fun <T> all(vararg rules: Rule<T>): Rule<T>
fun <T> all(rules: List<Rule<T>>): Rule<T>

Returns a new Rule that is the logical equivalent of the following operation:

rules[0] && rules[1] && ...

Return

A new Rule representing the logical "and" of the given rules.

Parameters

rules

The other Rules to evaluate.