@FunctionalInterface public interface CheckedRunnable<THROWABLE extends Throwable>
| Modifier and Type | Method and Description |
|---|---|
static <THROWABLE extends Throwable> |
asCheckedSupplier(CheckedRunnable<THROWABLE> runnable) |
void |
run()
The same as
Runnable.run()
except that this method is declared with a throws-clause. |
void run() throws THROWABLE extends Throwable
Runnable.run()
except that this method is declared with a throws-clause.static <THROWABLE extends Throwable> CheckedSupplier<?,THROWABLE> asCheckedSupplier(CheckedRunnable<THROWABLE> runnable)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.