Module com.machinezoo.noexception
Interface ThrowingBiConsumer<T,U>
-
- Type Parameters:
-
T- seeBiConsumer -
U- seeBiConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingBiConsumer<T,U>
Variation ofBiConsumerthat allows throwing checked exceptions.ThrowingBiConsumeris usually implemented by a lambda and passed toCheckedExceptionHandler.fromBiConsumer(ThrowingBiConsumer). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T t, U u)Variation ofBiConsumer.accept(Object, Object)that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(T t, U u) throws Throwable
Variation ofBiConsumer.accept(Object, Object)that allows throwing checked exceptions.- Parameters:
-
t- seeBiConsumer.accept(Object, Object) -
u- seeBiConsumer.accept(Object, Object) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromBiConsumer(ThrowingBiConsumer),BiConsumer.accept(Object, Object)
-
-