collectIDsMatching

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

Collects the IDs of entries that satisfy the given predicate.

By default, the local ID is excluded from the result. It is included only if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf.

Return

a set of IDs from entries that satisfy the predicate.

Parameters

reductionType

specifies whether to include the local ID (default is ExcludingSelf).

predicate

the filter applied to each field entry.