Module com.machinezoo.noexception
Interface ThrowingIntBinaryOperator
-
- 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 ThrowingIntBinaryOperator
Variation ofIntBinaryOperator
that allows throwing checked exceptions.ThrowingIntBinaryOperator
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromIntBinaryOperator(ThrowingIntBinaryOperator)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
applyAsInt(int left, int right)
Variation ofIntBinaryOperator.applyAsInt(int, int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(int left, int right) throws Throwable
Variation ofIntBinaryOperator.applyAsInt(int, int)
that allows throwing checked exceptions.- Parameters:
-
left
- seeIntBinaryOperator.applyAsInt(int, int)
-
right
- seeIntBinaryOperator.applyAsInt(int, int)
- Returns:
-
see
IntBinaryOperator.applyAsInt(int, int)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntBinaryOperator(ThrowingIntBinaryOperator)
,IntBinaryOperator.applyAsInt(int, int)
-
-