Interface ThrowingFunction<T,R,E extends Exception>

Type Parameters:
T - parameter of the function
R - return type of the function
E - checked exception thrown by the function
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 ThrowingFunction<T,R,E extends Exception>
Wrapper for a function throwing a checked exception to enable use in streams. ThrowingFunction.of(urlToCrawl -> new URL(urlToCrawl))