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(Supplier<A> supplier) |
downgradeRESULT apply(A parameter) throws Throwable
parameter - The function argument.Throwable - Any exception that the operation will throw.default Supplier<RESULT> downgrade(Supplier<A> supplier)
downgrade in interface AtlanticFunction<A,Supplier<RESULT>>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 © 2019. All rights reserved.