Package no.digipost.function
Interface ThrowingFunction.OfUncheckedException<T,R,X extends RuntimeException>
-
- Type Parameters:
T- the type of the input to the functionR- the type of the result of the functionX- 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 ofThrowingFunctionandFunction. 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 aThrowingFunctionis expected, as well as the JDK'sFunctiontype.- See Also:
ThrowingFunction.identity()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface no.digipost.function.ThrowingFunction
ThrowingFunction.OfUncheckedException<T,R,X extends RuntimeException>
-
-
Method Summary
-
Methods inherited from interface no.digipost.function.ThrowingFunction
andThen, apply, asUnchecked, compose, ifException, ifException, ifExceptionApply, ifExceptionApply, ifExceptionThrow, ifExceptionThrow
-
-