org.codehaus.gpars

groovyx.gpars
[Groovy] Class MappedPAWrapper

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

final class MappedPAWrapper
extends AbstractPAWrapper

The ParallelArray wrapper used after the map() operation


Constructor Summary
MappedPAWrapper(extra166y.ParallelArrayWithMapping 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
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

MappedPAWrapper

MappedPAWrapper(extra166y.ParallelArrayWithMapping pa)


 
Method Detail

filter

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.