org.codehaus.gpars

groovyx.gpars
Class MappedPAWrapper

java.lang.Object
  groovyx.gpars.AbstractPAWrapper
      groovyx.gpars.MappedPAWrapper

class MappedPAWrapper
extends AbstractPAWrapper

The ParallelArray wrapper used after the map() operation


Constructor Summary
MappedPAWrapper(java.lang.Object pa)

 
Method Summary
AbstractPAWrapper 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
combine, combineImpl, combineImpl, filter, getCollection, groupBy, map, max, max, min, min, reduce, reduce, size, sort, sum
 

Constructor Detail

MappedPAWrapper

public MappedPAWrapper(java.lang.Object pa)


 
Method Detail

filter

public final AbstractPAWrapper 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


 

Copyright © 2008–2010 Václav Pech. All Rights Reserved.