gpars
[Groovy] Class PAWrapper
java.lang.Object
gpars.AbstractPAWrapper
gpars.PAWrapper
final class PAWrapper
extends AbstractPAWrapper
The default ParallelArray wrapper class
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 |
PAWrapper
PAWrapper(def 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