@FunctionalInterface public interface CheckedRunnable<THROWABLE extends Throwable>
| 限定符和类型 | 方法和说明 |
|---|---|
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–2021 The Apache Software Foundation. All rights reserved.