com.koloboke.function
Interface DoubleBinaryOperator

All Superinterfaces:
DoubleDoubleToDoubleFunction

public interface DoubleBinaryOperator
extends DoubleDoubleToDoubleFunction

Represents an operation upon two 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.

See Also:
BinaryOperator, DoubleUnaryOperator

Method Summary
 double applyAsDouble(double left, double right)
          Applies this operator to the given operands.
 

Method Detail

applyAsDouble

double applyAsDouble(double left,
                     double right)
Applies this operator to the given operands.

Specified by:
applyAsDouble in interface DoubleDoubleToDoubleFunction
Parameters:
left - the first operand
right - the second operand
Returns:
the operator result