A - The type of the first argument to the functionB - The type of the second argument to the functionC - The type of the third argument to the functionRESULT - The type of the result of the function@FunctionalInterface public interface TriFunction<A,B,C,RESULT> extends AtlanticFunction<A,BiFunction<B,C,RESULT>>
Function.
This is a functional interface whose functional method is apply(Object, Object, Object).| Modifier and Type | Method and Description |
|---|---|
default <AFTER_RESULT> |
andThen(Function<? super RESULT,? extends AFTER_RESULT> after)
Returns a composed trifunction that first applies this trifunction to its input, and then applies the
after
function to the result. |
RESULT |
apply(A a,
B b,
C c)
Applies this function to the given arguments.
|
default BiFunction<B,C,RESULT> |
downgrade(A a)
Converts this
AtlanticFunction into another that has the same parameters save for the first one. |
RESULT apply(A a, B b, C c) throws Throwable
a - The first function argument.b - The second function argument.c - The third function argument.Throwable - Any exception that the operation will throw.default BiFunction<B,C,RESULT> downgrade(A a)
AtlanticFunctionAtlanticFunction into another that has the same parameters save for the first one. Invocation
of the returned AtlanticLambda will call this one with the provided parameter.downgrade in interface AtlanticFunction<A,BiFunction<B,C,RESULT>>a - The parameter that will be passed to this AtlanticFunction.default <AFTER_RESULT> TriFunction<A,B,C,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.