Interface FunctionPotentialException<T,R,E extends Throwable>

Type Parameters:
T - The type of the input parameter to the function
R - The return type of the function
E - The typing of a potential checked exception
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 FunctionPotentialException<T,R,E extends Throwable>
An extension to Function which allows the apply method to throw checked exceptions if desired.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Applies this function to the given argument, which may throw an unchecked or checked exception.
  • Method Details

    • apply

      R apply(T t) throws E
      Applies this function to the given argument, which may throw an unchecked or checked exception.
      Parameters:
      t - The function argument.
      Returns:
      The function result.
      Throws:
      E - A checked exception which may be thrown.