@FunctionalInterface public interface CheckedConsumer<T>
Consumer that allows for checked exceptions.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
static <T> java.util.function.Consumer<T> |
unchecked(CheckedConsumer<T> consumer) |
static <T> java.util.function.Consumer<T> |
unchecked(CheckedConsumer<T> consumer,
java.util.function.Consumer<Throwable> handler) |
void accept(T t) throws Throwable
t - the input argumentThrowablestatic <T> java.util.function.Consumer<T> unchecked(CheckedConsumer<T> consumer)
Unchecked#consumer(CheckedConsumer)}static <T> java.util.function.Consumer<T> unchecked(CheckedConsumer<T> consumer, java.util.function.Consumer<Throwable> handler)
Unchecked#consumer(CheckedConsumer, Consumer)}Copyright © 2016. All Rights Reserved.