Module io.smallrye.common.function
Package io.smallrye.common.function
Interface ExceptionObjIntFunction<T,R,E extends Exception>
- Type Parameters:
T- the first argument typeR- the result typeE- the exception type
public interface ExceptionObjIntFunction<T,R,E extends Exception>
A function which operates on an object and an integer, yielding an object.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ExceptionObjIntFunction<T, V, E> andThen(ExceptionFunction<? super R, ? extends V, ? extends E> after) Returns a function that applies the given function to the result of this function.Applies this function to the given arguments.
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
arg1- the first argumentarg2- the second argument- Returns:
- the function result
- Throws:
E- if an exception occurs
-
andThen
default <V> ExceptionObjIntFunction<T,V, andThenE> (ExceptionFunction<? super R, ? extends V, ? extends E> after) Returns a function that applies the given function to the result of this function.- Type Parameters:
V- the final return type- Parameters:
after- the next function (must not benull)- Returns:
- a function that applies the given function to the result of this function
-