E - the type of the thrown checked exception@FunctionalInterface public interface ThrowingRunnable<E extends Exception>
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
static Runnable |
sneaky(ThrowingRunnable<?> runnable)
Returns a new Runnable instance which rethrows the checked exception using the Sneaky Throws pattern
|
default Runnable |
unchecked() |
static Runnable |
unchecked(ThrowingRunnable<?> runnable) |
static Runnable unchecked(ThrowingRunnable<?> runnable)
static Runnable sneaky(ThrowingRunnable<?> runnable)
default Runnable unchecked()
Copyright © 2020. All rights reserved.