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 |
caught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
caught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R,T extends Throwable> |
checked(Throwables.ThrowingSupplier<R,T> supplier) |
R |
get() |
static <R> R |
get(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
ignored(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
ignored(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue) |
static <R> R get(Throwables.ThrowingSupplier<R,?> supplier)
static <R,T extends Throwable> Supplier<R> checked(Throwables.ThrowingSupplier<R,T> supplier)
static <R> R ignored(Throwables.ThrowingSupplier<R,?> supplier)
static <R> R ignored(Throwables.ThrowingSupplier<R,?> supplier, R defaultValue)
static <R> R caught(Throwables.ThrowingSupplier<R,?> supplier)
static <R> R caught(Throwables.ThrowingSupplier<R,?> supplier, R defaultValue, Supplier<String> message)
Copyright © 2023. All rights reserved.