IN_0 - the type of the input parameterOUT - the type of the return valuepublic class ClosureFunction<IN_0,OUT>
extends java.lang.Object
implements java.util.function.Function<IN_0,OUT>
Utility Function implementation used to wrap a Groovy Closure in a Java Function interface.
The wrapped closure must accept 1 argument, and should return the specified OUT type.
| Constructor and Description |
|---|
ClosureFunction(Closure<OUT> closure) |
| Modifier and Type | Method and Description |
|---|---|
OUT |
apply(IN_0 in_0) |
Closure<OUT> |
getClosure() |