Package io.github.connellite.function
Interface UncheckedBiConsumer<T,U>
- All Superinterfaces:
BiConsumer<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.
BiConsumer that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDelegates touncheckedAccept(T, U); checked exceptions are propagated.static <T,U> UncheckedBiConsumer<T, U> of(UncheckedBiConsumer<T, U> consumer) Gives a throwing method reference this interface as its target type.voiduncheckedAccept(T t, U u) Same asaccept(T, U), but may throw.Methods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
accept
Delegates touncheckedAccept(T, U); checked exceptions are propagated.- Specified by:
acceptin interfaceBiConsumer<T,U>
-
uncheckedAccept
Same asaccept(T, U), but may throw.- Throws:
Throwable
-
of
Gives a throwing method reference this interface as its target type. The same instance is returned;accept(T, U)still propagates checked exceptions.
-