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