Package org.codehaus.groovy.runtime
Class BooleanClosurePredicate<T>
java.lang.Object
org.codehaus.groovy.runtime.BooleanClosurePredicate<T>
- All Implemented Interfaces:
Predicate<T>
Adapts a
Closure to a Predicate, converting the closure's
return value to a boolean using Groovy truth semantics.- Since:
- 6.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanClosurePredicate(Closure wrapped) Constructs a BooleanClosurePredicate from a Closure. -
Method Summary
-
Constructor Details
-
BooleanClosurePredicate
Constructs a BooleanClosurePredicate from a Closure.- Parameters:
wrapped- theClosureto adapt to a predicate
-
-
Method Details