Interface FailableSupplier<T,E extends Exception>
- Type Parameters:
T- the type of results supplied by this supplierE- the type of the exception thrown by the supplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a supplier of results which can throw exceptions.
- Since:
- 4.1.19
-
Method Summary
Modifier and TypeMethodDescriptionget()Gets a result.wrapper(FailableSupplier<T, E> supplier) Wrapper responsible for converting a certainFailableSupplierinto aSupplier.
-
Method Details
-
get
Gets a result.- Returns:
- a result
- Throws:
E- an exception
-
wrapper
Wrapper responsible for converting a certainFailableSupplierinto aSupplier.- Type Parameters:
T- the type of results supplied by this supplierE- the type of the exception thrown by the supplier- Parameters:
supplier- The supplier function to be converted.- Returns:
- The build
Supplier.
-