Class PythonFunction.PythonUnaryOperator<T>

java.lang.Object
io.deephaven.integrations.python.PythonFunction<T,T>
io.deephaven.integrations.python.PythonFunction.PythonUnaryOperator<T>
All Implemented Interfaces:
Function<T,T>, UnaryOperator<T>
Enclosing class:
PythonFunction<T,R>

public static class PythonFunction.PythonUnaryOperator<T> extends PythonFunction<T,T> implements UnaryOperator<T>
  • Constructor Details

    • PythonUnaryOperator

      public PythonUnaryOperator(org.jpy.PyObject pyCallable, Class<T> classOut)
      Creates a UnaryOperator which calls a Python function.
      Parameters:
      pyCallable - The python object providing the function - must either be callable or have an apply attribute which is callable.
      classOut - The specific Java class expected to be returned by the PythonFunction.apply(Object) method. This should be the result of converting or unwrapping the output of pyCallable.