Package io.deephaven.integrations.python
Class PythonTools
java.lang.Object
io.deephaven.integrations.python.PythonTools
Functions to support interfacing to python from java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfunctionFromMapWithDefault
(Map<String, String> map, String defaultValue) Convert a map to a function.Convert a map to a function, mapping any nonexistent keys in the map to themselves.
-
Constructor Details
-
PythonTools
public PythonTools()
-
-
Method Details
-
functionFromMapWithDefault
public static Function<String,String> functionFromMapWithDefault(Map<String, String> map, String defaultValue) Convert a map to a function.- Parameters:
map
- the map to convert to function; the caller gives up ownership to the returned objectdefaultValue
- the value to map to any keys not in the map; may be null- Returns:
- the resulting function
-
functionFromMapWithIdentityDefaults
Convert a map to a function, mapping any nonexistent keys in the map to themselves.- Parameters:
map
- the map to convert to function; the caller gives up ownership to the returned object- Returns:
- the resulting function
-