Interface ThrowableBiFunction<T,​U,​R>

  • Type Parameters:
    T - input parameter type T
    U - input parameter type U
    R - output return type
    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 ThrowableBiFunction<T,​U,​R>
    Throwable BiFunction
    Since:
    0.1
    Author:
    PARK Yong Seo
    See Also:
    Function
    • Method Summary

      Modifier and Type Method Description
      R apply​(T t, U u)  
      static <T,​U,​R>
      java.util.function.BiFunction<T,​U,​R>
      runtime​(ThrowableBiFunction<T,​U,​R> biFunction)
      throws Exception lambda to throws RuntimeException lambda
    • Method Detail

      • apply

        R apply​(T t,
                U u)
         throws java.lang.Exception
        Parameters:
        t - input parameter type T
        u - input parameter type U
        Returns:
        output return
        Throws:
        java.lang.Exception
        See Also:
        Function
      • runtime

        static <T,​U,​R> java.util.function.BiFunction<T,​U,​R> runtime​(ThrowableBiFunction<T,​U,​R> biFunction)
        throws Exception lambda to throws RuntimeException lambda
        Parameters:
        biFunction -
        Returns:
        Since:
        0.6