Interface ThrowingFunction.OfUncheckedException<T,​R,​X extends RuntimeException>

  • Type Parameters:
    T - the type of the input to the function
    R - the type of the result of the function
    X - unchecked exception type
    All Superinterfaces:
    Function<T,​R>, ThrowingFunction<T,​R,​X>
    Enclosing interface:
    ThrowingFunction<T,​R,​X extends Throwable>
    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 static interface ThrowingFunction.OfUncheckedException<T,​R,​X extends RuntimeException>
    extends ThrowingFunction<T,​R,​X>, Function<T,​R>
    Unification of ThrowingFunction and Function. This type is applicable as a return type from methods producing functions, and never as an input parameter type. This enables such returned functions to be used both where a ThrowingFunction is expected, as well as the JDK's Function type.
    See Also:
    ThrowingFunction.identity()