Module com.machinezoo.noexception
Interface ThrowingBiFunction<T,U,R>
-
- Type Parameters:
-
T- seeBiFunction -
U- seeBiFunction -
R- seeBiFunction
- All Known Subinterfaces:
-
ThrowingBinaryOperator<T>
- 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>
Variation ofBiFunctionthat allows throwing checked exceptions.ThrowingBiFunctionis usually implemented by a lambda and passed toCheckedExceptionHandler.fromBiFunction(ThrowingBiFunction). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T t, U u)Variation ofBiFunction.apply(Object, Object)that allows throwing checked exceptions.
-
-
-
Method Detail
-
apply
R apply(T t, U u) throws Throwable
Variation ofBiFunction.apply(Object, Object)that allows throwing checked exceptions.- Parameters:
-
t- seeBiFunction.apply(Object, Object) -
u- seeBiFunction.apply(Object, Object) - Returns:
-
see
BiFunction.apply(Object, Object) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromBiFunction(ThrowingBiFunction),BiFunction.apply(Object, Object)
-
-