firstFailedPredicate

Returns the first CMatterPredicate that rejects ctx, or null when all of them pass.

Evaluates predicates in order and stops at the first failure, exactly as predicatesResult does, so this can be used in its place when the caller needs to report which predicate failed rather than only whether one did. The returned index is the position within predicates and identifies a predicate that did not override CMatterPredicate.name.

Return

Pair The failing predicate's index paired with the predicate itself, or null when nothing failed

Since

5.3.0

Parameters

ctx

Context of CMatterPredicate execution