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:
1.0.0
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> wrap​(ThrowableFunction<T,​R> function)
    throws Exception lambda to throws RuntimeException lambda
  • Method Details

    • 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
    • wrap

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