allIDs

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

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

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

Return

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

Parameters

reductionType

controls whether the local ID is included in the check.

predicate

the condition to test for each ID.