groovyx.gpars.pa
Class ClosurePredicate

java.lang.Object
  extended by groovyx.gpars.pa.ClosurePredicate
All Implemented Interfaces:
extra166y.Ops.Predicate<java.lang.Object>

public final class ClosurePredicate
extends java.lang.Object
implements extra166y.Ops.Predicate<java.lang.Object>

A PA predicate built around a closure

Author:
Vaclav Pech

Field Summary
private  groovy.lang.Closure code
           
 
Constructor Summary
ClosurePredicate(groovy.lang.Closure code)
           
 
Method Summary
 boolean 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 code
Constructor Detail

ClosurePredicate

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

op

public boolean op(java.lang.Object o)
Specified by:
op in interface extra166y.Ops.Predicate<java.lang.Object>

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