Interface TBiConsumer<T,U>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a functional interface that can be used to replace BiConsumer and throw exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts the given arguments and throws an exception.default TBiConsumer<T,U> andThen(TBiConsumer<? super T, ? super U> after)
-
Method Details
-
accept
Accepts the given arguments and throws an exception.- Parameters:
t- The first argumentu- The second argument- Throws:
Throwable- The exception
-
andThen
- Parameters:
after- The operation to perform after this operation- Returns:
- A composed
TBiConsumerthat performs in sequence this operation followed by theafter
-