Interface ThrowableFunctionalInterfaces.Supplier<T,X extends Exception>
-
- Type Parameters:
T
- the type of results supplied by this supplierX
- the type of exception to be thrown by the supplier
- Enclosing interface:
- ThrowableFunctionalInterfaces
- 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 static interface ThrowableFunctionalInterfaces.Supplier<T,X extends Exception>
ExtendedSupplier<T>
functional interface which allows theget
method to throw an exception of type X.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get()
Gets a result.static <T,X extends Exception>
ThrowableFunctionalInterfaces.Supplier<T,X>of(Supplier<T> supplier)
Wraps the given supplier into a throwable supplier
-
-
-
Method Detail
-
of
static <T,X extends Exception> ThrowableFunctionalInterfaces.Supplier<T,X> of(Supplier<T> supplier)
Wraps the given supplier into a throwable supplier- Type Parameters:
T
- the type of results supplied by this supplierX
- the type of exception to be thrown by the supplier- Parameters:
supplier
- The supplier to wrap- Returns:
- The given supplier wrapped as a throwable supplier object
-
-