Package aQute.bnd.exceptions
Interface SupplierWithException<R>
- Type Parameters:
R
- the result type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplier interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Supplier<R>
asSupplier
(SupplierWithException<R> unchecked) static <R> Supplier<R>
asSupplierOrElse
(SupplierWithException<R> unchecked, R orElse) static <R> Supplier<R>
asSupplierOrElseGet
(SupplierWithException<R> unchecked, Supplier<? extends R> orElseGet) get()
-
Method Details
-
get
- Throws:
Exception
-
orElseThrow
-
orElse
-
orElseGet
-
asSupplier
-
asSupplierOrElse
-
asSupplierOrElseGet
static <R> Supplier<R> asSupplierOrElseGet(SupplierWithException<R> unchecked, Supplier<? extends R> orElseGet)
-