collect Into
Collects the field entries that satisfy the given predicate, transforms them using transform, and stores the results in a new Collection produced by produceAccumulator.
By default, the local entry is excluded from the result. It is included only if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf.
Return
a mutable collection containing the transformed matching entries.
Parameters
specifies whether to include the local entry (default is ExcludingSelf).
function to create the result collection with an initial capacity.
the filter applied to each field entry.
the mapping function applied to each matching entry.
Collects the field entries that satisfy the given predicate, transforms them using transform, and stores the results in the provided accumulator.
By default, the local entry is excluded from the result. It is included only if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf.
Return
the same accumulator with the transformed entries added.
Parameters
the collection into which results are stored.
specifies whether to include the local entry (default is ExcludingSelf).
the filter applied to each field entry.
the mapping function applied to each matching entry.