groovyx.gpars.pa
Class ClosureReducer<T>

java.lang.Object
  extended by groovyx.gpars.pa.ClosureReducer<T>
All Implemented Interfaces:
Ops.BinaryOp<T,T,T>, Ops.Reducer<T>

public final class ClosureReducer<T>
extends java.lang.Object
implements Ops.Reducer<T>

A PA reducer built around a closure

Author:
Vaclav Pech

Field Summary
private  groovy.lang.Closure code
           
 
Constructor Summary
ClosureReducer(groovy.lang.Closure code)
           
 
Method Summary
 T op(java.lang.Object o, java.lang.Object o1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private final groovy.lang.Closure code
Constructor Detail

ClosureReducer

public ClosureReducer(groovy.lang.Closure code)
Method Detail

op

public T op(java.lang.Object o,
            java.lang.Object o1)
Specified by:
op in interface Ops.BinaryOp<T,T,T>

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