Interface ThrowingFunction<T,R,X extends Exception>

Type Parameters:
T - The input type of the function.
R - The result type of the function.
X - The exception type the function may throw.

public interface ThrowingFunction<T,R,X extends Exception>
Functional interface for operations which may throw a checked exception.
Since:
5.0.2
Author:
John Hendrikx
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T input)
    Applies the function to the given T.
  • Method Details

    • apply

      R apply(T input) throws X
      Applies the function to the given T.
      Parameters:
      input - The input of type T.
      Returns:
      The result of applying the function.
      Throws:
      X - When the function failed with an exception of type X.