| 程序包 | 说明 |
|---|---|
| com.iofairy.tcf |
tcf: try-catch-finally
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static <T extends AutoCloseable> |
Close.close(T autoCloseable,
V2<T,Throwable> catchAction) |
Simplify
try-catch-finally block when closing resources. |
static <T extends AutoCloseable> |
Close.close(T autoCloseable,
V2<T,Throwable> catchAction,
V1<T> finallyAction) |
Simplify
try-catch-finally block when closing resources. |
void |
Close.tcf(VT1<C,Throwable> closeAction,
V2<C,Throwable> catchAction) |
|
void |
Close.tcf(VT1<C,Throwable> closeAction,
V2<C,Throwable> catchAction,
V1<C> finallyAction) |
Copyright © 2023 io-fairy. All rights reserved.