-
- 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 CheckedRunnable
ARunnable
that allows for checked exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run()
Run this runnable.static java.lang.Runnable
sneaky(CheckedRunnable runnable)
static java.lang.Runnable
unchecked(CheckedRunnable runnable)
static java.lang.Runnable
unchecked(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)
-
-