T- The type of the first thing.
U- The type of the second thing.
@FunctionalInterface public interface BiAction<T,U>
This type serves the same purpose as the JDK's
BiConsumer, but allows throwing checked exceptions.
It contains methods for bridging to and from the JDK type.
|Modifier and Type||Method and Description|
Executes the action against the given thing.
Creates an bi-action from a JDK bi-consumer.
Returns a bi-action that does precisely nothing.
Creates a JDK
t- the first thing to input to the action
u- the second thing to input to the action
Exception- if anything goes wrong
default BiConsumer<T,U> toBiConsumer()
BiConsumerfrom this action.
Any exceptions thrown by
this action will be unchecked via
Exceptions.uncheck(Throwable) and rethrown.
static <T,U> BiAction<T,U> from(BiConsumer<T,U> consumer)
T- the type of the first object this action accepts
U- the type of the second object this action accepts
consumer- the JDK consumer