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 @FunctionalInterface public interface FunctionWithException<T,R>
Deprecated.Function interface that allows exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description R
apply(T t)
Deprecated.static <T,R>
java.util.function.Function<T,R>asFunction(FunctionWithException<T,R> unchecked)
Deprecated.static <T,R>
java.util.function.Function<T,R>asFunctionOrElse(FunctionWithException<T,R> unchecked, R orElse)
Deprecated.static <T,R>
java.util.function.Function<T,R>asFunctionOrElseGet(FunctionWithException<T,R> unchecked, java.util.function.Supplier<? extends R> orElseGet)
Deprecated.default java.util.function.Function<T,R>
orElse(R orElse)
Deprecated.default java.util.function.Function<T,R>
orElseGet(java.util.function.Supplier<? extends R> orElseGet)
Deprecated.default java.util.function.Function<T,R>
orElseThrow()
Deprecated.
-
-
-
Method Detail
-
orElseGet
default java.util.function.Function<T,R> orElseGet(java.util.function.Supplier<? extends R> orElseGet)
Deprecated.
-
asFunction
static <T,R> java.util.function.Function<T,R> asFunction(FunctionWithException<T,R> unchecked)
Deprecated.
-
asFunctionOrElse
static <T,R> java.util.function.Function<T,R> asFunctionOrElse(FunctionWithException<T,R> unchecked, R orElse)
Deprecated.
-
asFunctionOrElseGet
static <T,R> java.util.function.Function<T,R> asFunctionOrElseGet(FunctionWithException<T,R> unchecked, java.util.function.Supplier<? extends R> orElseGet)
Deprecated.
-
-