Interface SpecificThrowingSupplier<E extends Throwable,R>
- Type Parameters:
E
- The exception typeR
- The result type
- All Known Subinterfaces:
ThrowingSupplier<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Similar to a
Supplier
, except that the functional get
method is allowed to throw the specified exception.- Since:
- 2.11.0
-
Method Summary
-
Method Details
-
get
Creates a result.- Returns:
- The result
- Throws:
E
- Any exception
-