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 functionD - The type of the fourth argument to the functionRESULT - The type of the result of the function@FunctionalInterface public interface TetraFunction<A,B,C,D,RESULT> extends AtlanticFunction<A,TriFunction<B,C,D,RESULT>>
Function.
This is a functional interface whose functional method is apply(Object, Object, Object, Object).| Modifier and Type | Method and Description |
|---|---|
default <AFTER_RESULT> |
andThen(Function<? super RESULT,? extends AFTER_RESULT> after)
Returns a composed tetrafunction that first applies this tetrafunction to its input, and then applies the
after
function to the result. |
RESULT |
apply(A a,
B b,
C c,
D d)
Applies this function to the given arguments.
|
default TriFunction<B,C,D,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, D d) throws Throwable
a - The first function argument.b - The second function argument.c - The third function argument.d - The fourth function argument.Throwable - Any exception that the operation will throw.default TriFunction<B,C,D,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,TriFunction<B,C,D,RESULT>>a - The parameter that will be passed to this AtlanticFunction.default <AFTER_RESULT> TetraFunction<A,B,C,D,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 © 2018. All rights reserved.