Interface ThrowingFunction<T,R,E extends Exception>

Type Parameters:
T - the type of the input to the function
R - the type of the result of the function
E - the type of the checked exception that may be thrown
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 ThrowingFunction<T,R,E extends Exception>
A functional interface that allows lambdas which throw a checked exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T t)
     
     
  • Method Details

    • apply

      default R apply(T t)
    • doApply

      R doApply(T t) throws E
      Throws:
      E