Interface ThrowingFunction<T,​R,​X extends Throwable>

  • Type Parameters:
    T - the type of the input to the function
    R - the type of the result of the function
    X - the exception type which may be thrown when applying the function
    All Known Subinterfaces:
    ThrowingFunction.OfUncheckedException<T,​R,​X>
    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 ThrowingFunction<T,​R,​X extends Throwable>
    Represents a function that accepts one argument and produces a result, and it may throw an exception.