- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
BiConsumer
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs this operation on the given arguments.static <T,
U> BiConsumer<T, U> sneaky
(CheckedBiConsumer<T, U> consumer) static <T,
U> BiConsumer<T, U> unchecked
(CheckedBiConsumer<T, U> consumer) static <T,
U> BiConsumer<T, U> unchecked
(CheckedBiConsumer<T, U> consumer, Consumer<Throwable> handler)
-
Method Details
-
accept
Performs this operation on the given arguments.- Parameters:
t
- the first input argumentu
- the second input argument- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
static <T,U> BiConsumer<T,U> unchecked(CheckedBiConsumer<T, U> consumer, Consumer<Throwable> handler)
-