noValue

fun <ID : Any> Field<ID, Boolean>.noValue(reductionType: ReductionType = ExcludingSelf): Boolean

Returns true if no Boolean values in the field are true.

This overload assumes the identity predicate (i.e., it checks that all values are false). The local value is included in the check if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf (the default is ExcludingSelf).

Return

true if all applicable values are false, false otherwise.

Parameters

reductionType

controls whether the local value is included in the check.


inline fun <T> Field<*, T>.noValue(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<T>): Boolean

Returns true if no value in the field satisfies the given predicate.

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

Return

true if no applicable value satisfies the predicate, false otherwise.

Parameters

reductionType

controls whether the local value is included in the check.

predicate

the condition to test for each value.