Interface SpecificThrowingFunction<E extends Throwable,T,R>

Type Parameters:
E - The exception type
T - The input type
R - The result type
All Known Subinterfaces:
ThrowingFunction<T,R>
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 SpecificThrowingFunction<E extends Throwable,T,R>
Similar to a Function, except that the functional apply method is allowed to throw the specified exception.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Performs an operation on the given object and returns its result.
  • Method Details

    • apply

      R apply(T t) throws E
      Performs an operation on the given object and returns its result.
      Parameters:
      t - The input argument
      Returns:
      The result
      Throws:
      E - Any exception