IN_0
- the type of the first input parameterIN_1
- the type of the second input parameterOUT
- the type of the return valuepublic class ClosureBiFunction<IN_0,IN_1,OUT>
extends java.lang.Object
implements java.util.function.BiFunction<IN_0,IN_1,OUT>
Utility BiFunction
implementation used to wrap a Groovy Closure
in a Java BiFunction
interface.
The wrapped closure must accept 0, 1 or 2 arguments, and should return the specified OUT
type.
Constructor and Description |
---|
ClosureBiFunction(Closure<OUT> closure) |
Modifier and Type | Method and Description |
---|---|
OUT |
apply(IN_0 in_0,
IN_1 in_1) |
Closure<OUT> |
getClosure() |