@FunctionalInterface public interface ThrowingSupplier<T,X extends Throwable>
| Modifier and Type | Method and Description |
|---|---|
default Supplier<T> |
asUnchecked() |
T |
get() |
default Supplier<Optional<T>> |
ifException(Consumer<Exception> exceptionHandler) |
default Supplier<T> |
ifExceptionGet(Function<Exception,T> recoveryFunction) |
default Supplier<T> |
ifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper) |
default Supplier<T> ifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper)
Copyright © 2016 Digipost. All rights reserved.