Class JavaScriptDslBiConsumer<T,U>

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslBiConsumer<T,U>
Type Parameters:
T - the type of the first argument to the operation
U - the type of the second argument to the operation
All Implemented Interfaces:
BiConsumer<T,U>

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

    • JavaScriptDslBiConsumer

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

      public JavaScriptDslBiConsumer(String firstArgumentName, String secondArgumentName, CharSequence source)
      Construct a JavaScriptDslBiConsumer 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 consumer.
  • Method Details