Package no.digipost.function
Interface ThrowingRunnable<X extends Throwable>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingRunnable<X extends Throwable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RunnableasUnchecked()default RunnableifException(Consumer<Exception> exceptionHandler)default RunnableifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper)voidrun()
-
-
-
Method Detail
-
asUnchecked
default Runnable asUnchecked()
-
ifExceptionThrow
default Runnable ifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper)
-
-