Package org.wildfly.common.function
Interface ExceptionLongFunction<R,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 one-argument long integer function which can throw an exception.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R2> ExceptionLongFunction<R2,E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after) apply(long value) Applies this function to the given arguments.default <T> ExceptionFunction<T,R, E> compose(ExceptionToLongFunction<? super T, ? extends E> before)
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
value- the argument- Returns:
- the function result
- Throws:
E- if an exception occurs
-
andThen
default <R2> ExceptionLongFunction<R2,E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after) -
compose
-