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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPythonBiFunction(org.jpy.PyObject pyCallable, Class<R> classOut) Creates aBiFunctionwhich calls a Python function. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
PythonBiFunction
Creates aBiFunctionwhich calls a Python function.- Parameters:
pyCallable- The python object providing the function - must either be callable or have anapplyattribute 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:
applyin interfaceBiFunction<T,U, R>
-