Interface ThrowingIntFunction<R,E extends Exception>

Type Parameters:
R - the type of the result of the function
E - the type of the thrown checked exception
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 interface ThrowingIntFunction<R,E extends Exception>
Functional interface mirroring IntFunction<R> for primitive ints from the java.util.function package. This allows wrapping a exceptions in a runtime exception: WrappedException

As this adheres to the IntFunction interface, compose and andThen (as you might be familiar with from Function are not available.