Package aQute.lib.exceptions
Interface FunctionWithException<T,R>
- Type Parameters:
T
- the type of the argumentR
- 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.
Function interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.static <T,
R> Function<T, R> asFunction
(FunctionWithException<T, R> unchecked) Deprecated.static <T,
R> Function<T, R> asFunctionOrElse
(FunctionWithException<T, R> unchecked, R orElse) Deprecated.static <T,
R> Function<T, R> asFunctionOrElseGet
(FunctionWithException<T, R> unchecked, Supplier<? extends R> orElseGet) Deprecated.Deprecated.Deprecated.Deprecated.
-
Method Details
-
apply
Deprecated.- Throws:
Exception
-
orElseThrow
Deprecated. -
orElse
Deprecated. -
orElseGet
Deprecated. -
asFunction
Deprecated. -
asFunctionOrElse
Deprecated. -
asFunctionOrElseGet
static <T,R> Function<T,R> asFunctionOrElseGet(FunctionWithException<T, R> unchecked, Supplier<? extends R> orElseGet) Deprecated.
-