Interface ThrowingBiFunction<T,U,R,X extends Throwable>
- Type Parameters:
T- the type of the first argument to the functionU- the type of the second argument to the functionX- the type of the exception thrown by the function
- All Superinterfaces:
BiFunction<T,U, R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ThrowingBiFunction<T,U,R,X extends Throwable>
extends BiFunction<T,U,R>
An extension of
BiFunction allowing throwing calls in its body.-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
applyChecked
Applies this function to the given arguments.- Parameters:
t- the first function argumentu- the second function argument- Returns:
- the function result
- Throws:
X- if an exception happens
-
invoke
Deprecated.in favor ofapplyChecked(Object, Object)Applies this function to the given arguments.- Parameters:
t- the first function argumentu- the second function argument- Returns:
- the function result
- Throws:
X- if an exception happens
-
apply
- Specified by:
applyin interfaceBiFunction<T,U, R>
-
applyChecked(Object, Object)