Module org.klojang.check
Package org.klojang.check.fallible
Interface FallibleBiFunction<T,U,R,X extends Throwable>
- Type Parameters:
T
- the type of the 1st argumentU
- the type of the 2nd argumentR
- the type of the return valueX
- the type of the exception potentially being thrown
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An alternative to the
BiFunction
interface that allows the functional
method to throw a checked exception.- Author:
- Ayco Holleman
-
Method Summary
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
arg0
- the 1st argumentarg1
- the 2nd argument- Returns:
- a value of type
R
- Throws:
X
- if the operation fails
-