Interface ThrowableBiConsumer<T,​U>

Type Parameters:
T - input parameter type T
U - 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>
Throwable BiConsumer
Since:
1.0.0
Author:
PARK Yong Seo
See Also:
Consumer
  • Method Summary

    Modifier and Type Method Description
    void accept​(T t, U u)  
    static <T,​ U> java.util.function.BiConsumer<T,​U> wrap​(ThrowableBiConsumer<T,​U> biConsumer)
    throws Exception lambda to throws RuntimeException lambda
  • Method Details

    • accept

      void accept​(T t, U u) throws java.lang.Exception
      Parameters:
      t - input parameter type T
      u - input parameter type U
      Throws:
      java.lang.Exception
      See Also:
      Consumer
    • wrap

      static <T,​ U> java.util.function.BiConsumer<T,​U> wrap​(ThrowableBiConsumer<T,​U> biConsumer)
      throws Exception lambda to throws RuntimeException lambda
      Parameters:
      biConsumer -
      Returns: