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 functionU- the type of the second argument to the functionR- the type of the result of the function
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionJavaScriptDslBiFunction(CharSequence source) Construct aJavaScriptDslBiFunctionwith the given source,tas first argument name anduas second argument.JavaScriptDslBiFunction(String firstArgumentName, String secondArgumentName, CharSequence source) Construct aJavaScriptDslBiFunctionwith the given source and argument names. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
JavaScriptDslBiFunction
Construct aJavaScriptDslBiFunctionwith the given source,tas first argument name anduas second argument.- Parameters:
source- the source of the function.
-
JavaScriptDslBiFunction
public JavaScriptDslBiFunction(String firstArgumentName, String secondArgumentName, CharSequence source) Construct aJavaScriptDslBiFunctionwith 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
-
apply
- Specified by:
applyin interfaceBiFunction<T,U, R>
-