Package io.deephaven.integrations.python
Class PythonBiFunction<T,U,R>
java.lang.Object
io.deephaven.integrations.python.PythonBiFunction<T,U,R>
- Type Parameters:
T
- input argument classU
- input argument class
- All Implemented Interfaces:
BiFunction<T,
U, R>
- Direct Known Subclasses:
PythonBiFunction.PythonBinaryOperator
A
BiFunction
implementation which calls a Python callable.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPythonBiFunction
(org.jpy.PyObject pyCallable, Class<R> classOut) Creates aBiFunction
which calls a Python function. -
Method Summary
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
-
PythonBiFunction
Creates aBiFunction
which calls a Python function.- Parameters:
pyCallable
- The python object providing the function - must either be callable or have anapply
attribute which is callable.classOut
- The specific Java class expected to be returned by theapply(Object, Object)
method. This should be the result of converting or unwrapping the output ofpyCallable
.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<T,
U, R>
-