T
- see BiConsumer
U
- see BiConsumer
@FunctionalInterface public interface ThrowingBiConsumer<T,U>
BiConsumer
that allows throwing checked exceptions. ThrowingBiConsumer
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromBiConsumer(ThrowingBiConsumer)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
void |
accept(T t, U u)
Variation of BiConsumer.accept(Object, Object) that allows throwing checked exceptions.
|
void accept(T t, U u) throws Throwable
BiConsumer.accept(Object, Object)
that allows throwing checked exceptions.
t
- see BiConsumer.accept(Object, Object)
u
- see BiConsumer.accept(Object, Object)
Throwable
- if unable to complete
CheckedExceptionHandler.fromBiConsumer(ThrowingBiConsumer)
, BiConsumer.accept(Object, Object)
Copyright © 2017–2020 Robert Važan. All rights reserved.