A - The type of the first argument to the functionB - The type of the second argument to the functionRESULT - The type of the result of the function@FunctionalInterface public interface BiFunction<A,B,RESULT> extends AtlanticFunction<A,Function<B,RESULT>>
Function.
This is a functional interface whose functional method is apply(Object, Object).| Modifier and Type | Method and Description |
|---|---|
default <AFTER_RESULT> |
andThen(Function<? super RESULT,? extends AFTER_RESULT> after)
Returns a composed bifunction that first applies this bifunction to its input, and then applies the
after
function to the result. |
RESULT |
apply(A a,
B b)
Applies this function to the given arguments.
|
default Function<B,RESULT> |
downgrade(Supplier<A> supplier) |
downgradeRESULT apply(A a, B b) throws Throwable
a - The first function argument.b - The second function argument.Throwable - Any exception that the operation will throw.default <AFTER_RESULT> BiFunction<A,B,AFTER_RESULT> andThen(Function<? super RESULT,? extends AFTER_RESULT> after)
after
function to the result.
If evaluation of either function throws an exception, it is relayed to the caller of the composed function.AFTER_RESULT - The type of output of the after function, and of the composed function.after - The function to apply after this function is applied.after functionCopyright © 2019. All rights reserved.