Interface CheckedSupplier<T,E extends Exception>
- Type Parameters:
T
- type of object to supplyE
- exception-type if supplying fails
- All Known Implementing Classes:
CachedSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Supplier
but can also throw an exception.- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
get
Applies a supplier like withSupplier.get()
.- Returns:
- the supplied object.
- Throws:
E
- an exception that may be thrown.
-