Class ClosureBiFunction<T,U,R>

java.lang.Object
io.deephaven.plot.util.functions.SerializableClosure<R>
io.deephaven.plot.util.functions.ClosureBiFunction<T,U,R>
All Implemented Interfaces:
SerializableBiFunction<T,U,R>, Serializable, BiFunction<T,U,R>

public class ClosureBiFunction<T,U,R> extends SerializableClosure<R> implements SerializableBiFunction<T,U,R>
Wraps a SerializableBiFunction with the API of a function.
See Also:
  • Constructor Details

    • ClosureBiFunction

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

    • apply

      public R apply(T t, U u)
      Applies this function to the given arguments.
      Specified by:
      apply in interface BiFunction<T,U,R>
      Parameters:
      t - the first function argument
      u - the second function argument
      Returns:
      the function result