E - the type of the input to the functionR - the type of the result of the functionT - the type of the call apply method possible occur exception@FunctionalInterface public static interface Throwables.ThrowingFunction<E,R,T extends Throwable>
| 限定符和类型 | 方法和说明 |
|---|---|
R |
apply(E e) |
static <E,R> R |
apply(Throwables.ThrowingFunction<E,R,?> function,
E arg) |
static <E,R> Function<E,R> |
caught(Throwables.ThrowingFunction<E,R,?> function) |
static <E,R> Function<E,R> |
caught(Throwables.ThrowingFunction<E,R,?> function,
R defaultValue,
Supplier<String> message) |
static <E,R> Function<E,R> |
checked(Throwables.ThrowingFunction<E,R,?> function) |
static <E,R> R |
execute(Throwables.ThrowingFunction<E,R,?> function,
E arg) |
static <E,R> R |
execute(Throwables.ThrowingFunction<E,R,?> function,
E arg,
R defaultValue,
Supplier<String> message) |
default Throwables.ThrowingConsumer<E,Throwable> |
toConsumer() |
default Throwables.ThrowingConsumer<E,Throwable> toConsumer()
static <E,R> R apply(Throwables.ThrowingFunction<E,R,?> function, E arg)
static <E,R> R execute(Throwables.ThrowingFunction<E,R,?> function, E arg)
static <E,R> R execute(Throwables.ThrowingFunction<E,R,?> function, E arg, R defaultValue, Supplier<String> message)
static <E,R> Function<E,R> checked(Throwables.ThrowingFunction<E,R,?> function)
static <E,R> Function<E,R> caught(Throwables.ThrowingFunction<E,R,?> function)
static <E,R> Function<E,R> caught(Throwables.ThrowingFunction<E,R,?> function, R defaultValue, Supplier<String> message)
Copyright © 2023. All rights reserved.