all

inline fun <ID : Any, T> Field<ID, T>.all(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<FieldEntry<ID, T>>): Boolean

Returns true if all elements in the field satisfy the given predicate.

The local entry is included in the check if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf (the default is it.unibo.collektive.stdlib.util.ExcludingSelf).

Return

true if all applicable entries satisfy the predicate, false otherwise.

Parameters

reductionType

controls whether the local entry is included in the check.

predicate

the condition to test for each field entry.