RESULT - the type of results supplied by this supplier@FunctionalInterface public interface Supplier<RESULT> extends AtlanticLambda
get().| 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. |
static <RESULT> Supplier<RESULT> |
fixedSupplier(RESULT result) |
RESULT |
get()
Gets a result.
|
RESULT get() throws Throwable
Throwable - Any exception that the operation will throw.static <RESULT> Supplier<RESULT> fixedSupplier(RESULT result)
default <AFTER_RESULT> Supplier<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.