Interface CheckedSupplier<T,E extends Exception>
- Type Parameters:
T
- The return type of the lambda function.E
- The type of exception thrown by the lambda function.
- All Superinterfaces:
Supplier<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The java standard library does not provide a lambda function interface for functions that take no arguments,
but that throw an exception. So, we have to define our own here.
-
Method Summary