Package io.deephaven.plot.util.functions
Class ClosureBiFunction<T,U,R>
java.lang.Object
io.deephaven.plot.util.functions.HasClosure<R>
io.deephaven.plot.util.functions.ClosureBiFunction<T,U,R>
- All Implemented Interfaces:
SerializableBiFunction<T,
,U, R> Serializable
,BiFunction<T,
U, R>
public class ClosureBiFunction<T,U,R>
extends HasClosure<R>
implements SerializableBiFunction<T,U,R>
Wraps a
SerializableBiFunction
with the API of a function. - See Also:
-
Constructor Summary
ConstructorDescriptionClosureBiFunction
(groovy.lang.Closure<R> closure) Creates a SerializableClosure instance with the two-argumentclosure
. -
Method Summary
Methods inherited from class io.deephaven.plot.util.functions.HasClosure
getClosure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
ClosureBiFunction
Creates a SerializableClosure instance with the two-argumentclosure
.- Parameters:
closure
- closure
-
-
Method Details
-
apply
Applies this function to the given arguments.- Specified by:
apply
in interfaceBiFunction<T,
U, R> - Parameters:
t
- the first function argumentu
- the second function argument- Returns:
- the function result
-