gpars
[Groovy] Class MappedPAWrapper
java.lang.Object
gpars.AbstractPAWrapper
gpars.MappedPAWrapper
final class MappedPAWrapper
extends AbstractPAWrapper
The ParallelArray wrapper used after the map() operation
Constructor Summary |
MappedPAWrapper(jsr166y.forkjoin.ParallelArray$WithMapping pa)
|
Method Summary |
PAWrapper
|
filter(groovy.lang.Closure cl)
Filters concurrently elements in the collection based on the outcome of the supplied function on each of the elements.
|
Methods inherited from class AbstractPAWrapper
|
filter, getCollection, map, max, max, min, min, reduce, reduce, size, sum |
MappedPAWrapper
MappedPAWrapper(jsr166y.forkjoin.ParallelArray$WithMapping pa)
-
filter
PAWrapper filter(groovy.lang.Closure cl)
- Filters concurrently elements in the collection based on the outcome of the supplied function on each of the elements.
- Parameters:
A
- closure indicating whether to propagate the given element into the filtered collection
- Returns:
- A collection holding the allowed values
Groovy Documentation