Interface ThrowableDoubleBinaryOperator
- All Superinterfaces:
DoubleBinaryOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation upon two
double-valued operands and producing a
double-valued result. This is the primitive type specialization of ThrowableBinaryOperator for double.
Permits checked exceptions unlike DoubleBinaryOperator
This is a functional interface whose functional method is
applyAsDouble(double, double).
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleapplyAsDouble(double left, double right) Applies this operator to the given operands.doubleapplyAsDoubleUnsafe(double left, double right) Applies this operator to the given operands.
-
Method Details
-
applyAsDoubleUnsafe
Applies this operator to the given operands.- Parameters:
left- the first operandright- the second operand- Returns:
- the operator result
- Throws:
Throwable- occurred during processing
-
applyAsDouble
default double applyAsDouble(double left, double right) Applies this operator to the given operands.- Specified by:
applyAsDoublein interfaceDoubleBinaryOperator- Parameters:
left- the first operandright- the second operand- Returns:
- the operator result
-