接口的使用
tech.mhuang.pacebox.core.sugar.function.CheckedSupplier
使用CheckedSupplier的程序包
-
tech.mhuang.pacebox.core.sugar中CheckedSupplier的使用
修饰符和类型方法说明static <R> Supplier<R>Attempt.supply(CheckedSupplier<R> supplier) 包装受检的 Supplierstatic <R> Supplier<R>Attempt.supply(CheckedSupplier<R> supplier, Function<Throwable, R> handler) 包装受检的 Supplier,并并自定义异常处理