Package aQute.lib.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.
Deprecated.
Supplier interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Supplier<R>
asSupplier
(SupplierWithException<R> unchecked) Deprecated.static <R> Supplier<R>
asSupplierOrElse
(SupplierWithException<R> unchecked, R orElse) Deprecated.static <R> Supplier<R>
asSupplierOrElseGet
(SupplierWithException<R> unchecked, Supplier<? extends R> orElseGet) Deprecated.get()
Deprecated.Deprecated.Deprecated.Deprecated.
-
Method Details
-
get
Deprecated.- Throws:
Exception
-
orElseThrow
Deprecated. -
orElse
Deprecated. -
orElseGet
Deprecated. -
asSupplier
Deprecated. -
asSupplierOrElse
Deprecated. -
asSupplierOrElseGet
static <R> Supplier<R> asSupplierOrElseGet(SupplierWithException<R> unchecked, Supplier<? extends R> orElseGet) Deprecated.
-