Groovy Documentation

gpars
Class PAWrapper

java.lang.Object
  gpars.AbstractPAWrapper
      gpars.PAWrapper

class PAWrapper
extends AbstractPAWrapper

The default ParallelArray wrapper class


Constructor Summary
PAWrapper(def 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
 

Constructor Detail

PAWrapper

public PAWrapper(def pa)


 
Method Detail

filter

public 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.
param:
A closure indicating whether to propagate the given element into the filtered collection
return:
A collection holding the allowed values


 

Groovy Documentation