A - the type of the input to the functionRESULT - the type of the result of the function@FunctionalInterface public interface Function<A,RESULT> extends AtlanticFunction<A,Supplier<RESULT>>
apply(Object).| Modifier and Type | Method and Description |
|---|---|
default <AFTER_RESULT> |
andThen(Function<? super RESULT,? extends AFTER_RESULT> after)
Returns a composed function that first applies this function to its input, and then applies the
after
function to the result. |
RESULT |
apply(A parameter)
Applies this function to the given argument.
|
default Supplier<RESULT> |
downgrade(A a)
Converts this
AtlanticFunction into another that has the same parameters save for the first one. |
RESULT apply(A parameter) throws Throwable
parameter - The function argument.Throwable - Any exception that the operation will throw.default Supplier<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,Supplier<RESULT>>a - The parameter that will be passed to this AtlanticFunction.default <AFTER_RESULT> Function<A,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.