groovyx.gpars.pa
Class ClosureMapper<V>

java.lang.Object
  extended by groovyx.gpars.pa.ClosureMapper<V>
All Implemented Interfaces:
Ops.Op<java.lang.Object,V>

public final class ClosureMapper<V>
extends java.lang.Object
implements Ops.Op<java.lang.Object,V>

A PA mapper built around a closure

Author:
Vaclav Pech

Field Summary
private  groovy.lang.Closure<V> code
           
 
Constructor Summary
ClosureMapper(groovy.lang.Closure<V> code)
           
 
Method Summary
 V op(java.lang.Object o)
           
 
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<V> code
Constructor Detail

ClosureMapper

public ClosureMapper(groovy.lang.Closure<V> code)
Method Detail

op

public V op(java.lang.Object o)
Specified by:
op in interface Ops.Op<java.lang.Object,V>

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