Class JavaScriptDslBiFunction<T,U,R>

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslBiFunction<T,U,R>
Type Parameters:
T - the type of the first argument to the function
U - the type of the second argument to the function
R - the type of the result of the function
All Implemented Interfaces:
BiFunction<T,U,R>

public final class JavaScriptDslBiFunction<T,U,R> extends Object implements BiFunction<T,U,R>
JavaScriptDslBiFunction is meant to be used as type of BiFunction from a JavaScript file to remain compatible with the native mode that doesn't support the function Java.extend.
  • Constructor Details

    • JavaScriptDslBiFunction

      public JavaScriptDslBiFunction(CharSequence source)
      Construct a JavaScriptDslBiFunction with the given source, t as first argument name and u as second argument.
      Parameters:
      source - the source of the function.
    • JavaScriptDslBiFunction

      public JavaScriptDslBiFunction(String firstArgumentName, String secondArgumentName, CharSequence source)
      Construct a JavaScriptDslBiFunction with the given source and argument names.
      Parameters:
      firstArgumentName - the name of the first argument.
      secondArgumentName - the name of the second argument.
      source - the source of the function.
  • Method Details