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 @FunctionalInterface public interface SupplierWithException<R>Deprecated.Supplier interface that allows exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static <R> java.util.function.Supplier<R>asSupplier(SupplierWithException<R> unchecked)Deprecated.static <R> java.util.function.Supplier<R>asSupplierOrElse(SupplierWithException<R> unchecked, R orElse)Deprecated.static <R> java.util.function.Supplier<R>asSupplierOrElseGet(SupplierWithException<R> unchecked, java.util.function.Supplier<? extends R> orElseGet)Deprecated.Rget()Deprecated.default java.util.function.Supplier<R>orElse(R orElse)Deprecated.default java.util.function.Supplier<R>orElseGet(java.util.function.Supplier<? extends R> orElseGet)Deprecated.default java.util.function.Supplier<R>orElseThrow()Deprecated.
-
-
-
Method Detail
-
get
R get() throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
orElseThrow
default java.util.function.Supplier<R> orElseThrow()
Deprecated.
-
orElseGet
default java.util.function.Supplier<R> orElseGet(java.util.function.Supplier<? extends R> orElseGet)
Deprecated.
-
asSupplier
static <R> java.util.function.Supplier<R> asSupplier(SupplierWithException<R> unchecked)
Deprecated.
-
asSupplierOrElse
static <R> java.util.function.Supplier<R> asSupplierOrElse(SupplierWithException<R> unchecked, R orElse)
Deprecated.
-
asSupplierOrElseGet
static <R> java.util.function.Supplier<R> asSupplierOrElseGet(SupplierWithException<R> unchecked, java.util.function.Supplier<? extends R> orElseGet)
Deprecated.
-
-