|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpars.TransparentParallel
final class TransparentParallel
Enhances objects by being mixed-in either within a GParsPool.withPool() block or after enhancement by the ParallelEnhancer through the makeTransparent() method. It overrides the iterative methods, like each, collect and such to delegate to eachParallel, collectParallel and other parallel iterative methods. The collections returned from collect(), findAll() and grep() are again mixed with a TransparentParallel instance, so their iterative methods are transparently parallel as well. Author: Vaclav Pech, Dierk Koenig Date: Oct 30, 2009
Method Summary | |
---|---|
def
|
any(groovy.lang.Closure yield)
|
def
|
collect(groovy.lang.Closure yield)
|
def
|
count(def filter)
|
def
|
each(groovy.lang.Closure yield)
|
def
|
eachWithIndex(groovy.lang.Closure yield)
|
def
|
every(groovy.lang.Closure yield)
|
def
|
find(groovy.lang.Closure yield)
|
def
|
findAll(groovy.lang.Closure yield)
|
def
|
findAny(groovy.lang.Closure yield)
|
def
|
fold(groovy.lang.Closure yield)
|
def
|
fold(def seed, groovy.lang.Closure yield)
|
def
|
grep(def filter)
|
def
|
groupBy(groovy.lang.Closure yield)
|
boolean
|
isTransparent()
Indicates, whether the iterative methods like each() or collect() have been made parallel. |
def
|
max(groovy.lang.Closure yield)
|
def
|
max()
|
def
|
min(groovy.lang.Closure yield)
|
def
|
min()
|
def
|
split(groovy.lang.Closure yield)
|
def
|
sum()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
final def any(groovy.lang.Closure yield)
final def collect(groovy.lang.Closure yield)
final def count(def filter)
final def each(groovy.lang.Closure yield)
final def eachWithIndex(groovy.lang.Closure yield)
final def every(groovy.lang.Closure yield)
final def find(groovy.lang.Closure yield)
final def findAll(groovy.lang.Closure yield)
final def findAny(groovy.lang.Closure yield)
final def fold(groovy.lang.Closure yield)
final def fold(def seed, groovy.lang.Closure yield)
final def grep(def filter)
final def groupBy(groovy.lang.Closure yield)
boolean isTransparent()
final def max(groovy.lang.Closure yield)
final def max()
final def min(groovy.lang.Closure yield)
final def min()
final def split(groovy.lang.Closure yield)
final def sum()
Groovy Documentation