Interface ThrowableFunction<T,​R>

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

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

      • apply

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

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