-
- 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 CheckedRunnableARunnablethat allows for checked exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()Run this runnable.static java.lang.Runnablesneaky(CheckedRunnable runnable)static java.lang.Runnableunchecked(CheckedRunnable runnable)static java.lang.Runnableunchecked(CheckedRunnable runnable, java.util.function.Consumer<java.lang.Throwable> handler)
-
-
-
Method Detail
-
run
void run() throws java.lang.Throwable
Run this runnable.- Throws:
java.lang.Throwable
-
sneaky
static java.lang.Runnable sneaky(CheckedRunnable runnable)
-
unchecked
static java.lang.Runnable unchecked(CheckedRunnable runnable)
-
unchecked
static java.lang.Runnable unchecked(CheckedRunnable runnable, java.util.function.Consumer<java.lang.Throwable> handler)
-
-