Class ClosureFunction<T,R>

java.lang.Object
io.deephaven.plot.util.functions.HasClosure<R>
io.deephaven.plot.util.functions.ClosureFunction<T,R>
All Implemented Interfaces:
SerializableFunction<T,R>, Serializable, Function<T,R>

public class ClosureFunction<T,R> extends HasClosure<R> implements SerializableFunction<T,R>
Wraps a HasClosure with the API of a function.
See Also:
  • Constructor Details

    • ClosureFunction

      public ClosureFunction(groovy.lang.Closure<R> closure)
      Creates a ClosureFunction instance with the closure.
      Parameters:
      closure - closure
  • Method Details