Package io.smallrye.common.function
Interface ExceptionToLongFunction<T,E extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A two-argument function which can throw an exception.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R> ExceptionFunction<T, R, E> andThen(ExceptionLongFunction<R, E> after) longApply this function to the given arguments.default <T2> ExceptionToLongFunction<T2, E> compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)
-
Method Details
-
apply
Apply this function to the given arguments.- Parameters:
t- the first argument- Returns:
- the function result
- Throws:
E- if an exception occurs
-
andThen
-
compose
default <T2> ExceptionToLongFunction<T2,E> compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)
-