Interface CheckedFunction<T,R>

Type Parameters:
T - Type of the function argument (input)
R - Type of the function result
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 CheckedFunction<T,R>
Represents a function that accepts one argument, produces a result and might throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Applies this function to the given argument
  • Method Details

    • apply

      R apply(T t) throws Exception
      Applies this function to the given argument
      Parameters:
      t - Function argument
      Returns:
      Function result
      Throws:
      Exception - Exception thrown by the function