public interface DoubleBinaryOperator extends DoubleDoubleToDoubleFunction
double-valued operands and producing a
double-valued result. This is the primitive type specialization of
BinaryOperator for double.
Unlike DoubleDoubleToDoubleFunction, this operator is supposed to accept two homogeneous
arguments and produce a result homogeneous to the arguments, e. g. value merging
in ObjDoubleMap.merge(Object, double, DoubleBinaryOperator)
method.
BinaryOperator,
DoubleUnaryOperator| Modifier and Type | Method and Description |
|---|---|
double |
applyAsDouble(double left,
double right)
Applies this operator to the given operands.
|
double applyAsDouble(double left,
double right)
applyAsDouble in interface DoubleDoubleToDoubleFunctionleft - the first operandright - the second operand