Package io.openems.common.function
Interface ThrowingBiFunction<T,U,R,E extends Exception>
- Type Parameters:
T
- the apply methods first argument typeU
- the apply methods second argument typeR
- the type of the result of the functionE
- the exception type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface is similar to the java.util interface
BiFunction
.
Difference is, that it allows the apply() method to throw a defined
Exception
.-
Method Summary
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
t
- the first function argumentu
- the second function argument- Returns:
- the function result
- Throws:
E
- on error
-