Groovy Documentation

gpars
Class MappedPAWrapper

java.lang.Object
  gpars.AbstractPAWrapper
      gpars.MappedPAWrapper

class MappedPAWrapper
extends AbstractPAWrapper

The ParallelArray wrapper used after the map() operation


Constructor Summary
MappedPAWrapper(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

MappedPAWrapper

public MappedPAWrapper(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