T
- type of the first parameterU
- type of the second parameterR
- type of the return typeE
- type of the exception which can be thrown@FunctionalInterface public interface BiFunctionWithException<T,U,R,E extends Throwable>
BiFunction
interface which can throw exceptions.Modifier and Type | Method and Description |
---|---|
R |
apply(T t,
U u)
Apply the given values t and u to obtain the resulting value.
|
static <A,B,C> BiFunction<A,B,C> |
unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)
Convert at
BiFunctionWithException into a BiFunction . |
R apply(T t, U u) throws E extends Throwable
static <A,B,C> BiFunction<A,B,C> unchecked(BiFunctionWithException<A,B,C,?> biFunctionWithException)
BiFunctionWithException
into a BiFunction
.A
- input typeB
- output typebiFunctionWithException
- function with exception to convert into a functionBiFunction
which throws all checked exception as an unchecked exception.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.