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> void |
caught(Throwables.ThrowingConsumer<E,?> consumer,
E arg) |
static <E> void |
caught(Throwables.ThrowingConsumer<E,?> consumer,
E arg,
Supplier<String> message) |
static <E,T extends Throwable> |
checked(Throwables.ThrowingConsumer<E,T> consumer) |
static <E> void |
ignored(Throwables.ThrowingConsumer<E,?> consumer,
E arg) |
static <E> void accept(Throwables.ThrowingConsumer<E,?> consumer, E arg)
static <E,T extends Throwable> Consumer<E> checked(Throwables.ThrowingConsumer<E,T> consumer)
static <E> void ignored(Throwables.ThrowingConsumer<E,?> consumer, E arg)
static <E> void caught(Throwables.ThrowingConsumer<E,?> consumer, E arg)
static <E> void caught(Throwables.ThrowingConsumer<E,?> consumer, E arg, Supplier<String> message)
Copyright © 2023. All rights reserved.