Interface FunctionWithExceptions<T,R>

Type Parameters:
T - the type of the parameter of the function
R - the type of the result of the function

public interface FunctionWithExceptions<T,R>
A function that might throw exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Applies the function.
  • Method Details

    • apply

      R apply(T t) throws Throwable
      Applies the function.
      Parameters:
      t - the argument to the function
      Returns:
      the result of the function
      Throws:
      Throwable - any exception thrown by the function