Package me.saro.commons.function
Interface ThrowableBiConsumer<T,U>
-
- Type Parameters:
T- input parameter type TU- input parameter type U
- 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 ThrowableBiConsumer<T,U>ThrowableBiConsumer- Since:
- 0.1
- Author:
- PARK Yong Seo
- See Also:
Consumer
-
-
Method Summary
Modifier and Type Method Description voidaccept(T t, U u)static <T,U>
java.util.function.BiConsumer<T,U>ignore(ThrowableBiConsumer<T,U> biConsumer)ignore exception
this method recommend only special situationstatic <T,U>
java.util.function.BiConsumer<T,U>runtime(ThrowableBiConsumer<T,U> biConsumer)throws Exception lambda to throws RuntimeException lambda
-
-
-
Method Detail
-
accept
void accept(T t, U u) throws java.lang.Exception
- Parameters:
t- input parameter type Tu- input parameter type U- Throws:
java.lang.Exception- See Also:
Consumer
-
runtime
static <T,U> java.util.function.BiConsumer<T,U> runtime(ThrowableBiConsumer<T,U> biConsumer)
throws Exception lambda to throws RuntimeException lambda- Parameters:
biConsumer-- Returns:
- Since:
- 0.6
-
ignore
static <T,U> java.util.function.BiConsumer<T,U> ignore(ThrowableBiConsumer<T,U> biConsumer)
ignore exception
this method recommend only special situation- Parameters:
biConsumer-- Returns:
- Since:
- 1.1
-
-