R - the type of results supplied by this supplierT - the type of the call get method possible occur exception@FunctionalInterface public static interface Throwables.ThrowingSupplier<R,T extends Throwable>
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> R |
doCaught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
doCaught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R> R |
doChecked(Throwables.ThrowingSupplier<R,?> supplier) |
R |
get() |
static <R> Supplier<R> |
toCaught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> Supplier<R> |
toCaught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R> Supplier<R> |
toChecked(Throwables.ThrowingSupplier<R,?> supplier) |
default Throwables.ThrowingRunnable<Throwable> |
toRunnable() |
default Throwables.ThrowingRunnable<Throwable> toRunnable()
static <R> R doChecked(Throwables.ThrowingSupplier<R,?> supplier)
static <R> R doCaught(Throwables.ThrowingSupplier<R,?> supplier)
static <R> R doCaught(Throwables.ThrowingSupplier<R,?> supplier, R defaultValue, Supplier<String> message)
static <R> Supplier<R> toChecked(Throwables.ThrowingSupplier<R,?> supplier)
static <R> Supplier<R> toCaught(Throwables.ThrowingSupplier<R,?> supplier)
static <R> Supplier<R> toCaught(Throwables.ThrowingSupplier<R,?> supplier, R defaultValue, Supplier<String> message)
Copyright © 2025. All rights reserved.