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 |
doCaught(Throwables.ThrowingConsumer<E,?> consumer,
E arg) |
static <E> void |
doCaught(Throwables.ThrowingConsumer<E,?> consumer,
E arg,
Supplier<String> message) |
static <E> void |
doChecked(Throwables.ThrowingConsumer<E,?> consumer,
E arg) |
static <E> Consumer<E> |
toCaught(Throwables.ThrowingConsumer<E,?> consumer) |
static <E> Consumer<E> |
toCaught(Throwables.ThrowingConsumer<E,?> consumer,
Supplier<String> message) |
static <E> Consumer<E> |
toChecked(Throwables.ThrowingConsumer<E,?> consumer) |
default <R> Throwables.ThrowingFunction<E,R,T> |
toFunction(R result) |
default <R> Throwables.ThrowingFunction<E,R,T> toFunction(R result)
static <E> void doChecked(Throwables.ThrowingConsumer<E,?> consumer, E arg)
static <E> void doCaught(Throwables.ThrowingConsumer<E,?> consumer, E arg)
static <E> void doCaught(Throwables.ThrowingConsumer<E,?> consumer, E arg, Supplier<String> message)
static <E> Consumer<E> toChecked(Throwables.ThrowingConsumer<E,?> consumer)
static <E> Consumer<E> toCaught(Throwables.ThrowingConsumer<E,?> consumer)
static <E> Consumer<E> toCaught(Throwables.ThrowingConsumer<E,?> consumer, Supplier<String> message)
Copyright © 2024. All rights reserved.