Package aQute.lib.exceptions
Interface BiFunctionWithException<T,U,R>
- Type Parameters:
T
- the type 1 of the argumentU
- the type 2 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.
BiFunction interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U, R> BiFunction<T, U, R> asBiFunction
(BiFunctionWithException<T, U, R> unchecked) static <T,
U, R> BiFunction<T, U, R> asBiFunctionOrElse
(BiFunctionWithException<T, U, R> unchecked, R orElse) static <T,
U, R> BiFunction<T, U, R> asBiFunctionOrElseGet
(BiFunctionWithException<T, U, R> unchecked, Supplier<? extends R> orElseGet) default BiFunction<T,
U, R> default BiFunction<T,
U, R> default BiFunction<T,
U, R>
-
Method Details
-
apply
- Throws:
Exception
-
orElseThrow
-
orElse
-
orElseGet
-
asBiFunction
-
asBiFunctionOrElse
static <T,U, BiFunction<T,R> U, asBiFunctionOrElseR> (BiFunctionWithException<T, U, R> unchecked, R orElse) -
asBiFunctionOrElseGet
static <T,U, BiFunction<T,R> U, asBiFunctionOrElseGetR> (BiFunctionWithException<T, U, R> unchecked, Supplier<? extends R> orElseGet)
-