com.koloboke.function
Interface FloatBinaryOperator

All Superinterfaces:
FloatFloatToFloatFunction

public interface FloatBinaryOperator
extends FloatFloatToFloatFunction

Represents an operation upon two float-valued operands and producing a float-valued result. This is the primitive type specialization of BinaryOperator for float.

Unlike FloatFloatToFloatFunction, this operator is supposed to accept two homogeneous arguments and produce a result homogeneous to the arguments, e. g. value merging in ObjFloatMap.merge(Object, float, FloatBinaryOperator) method.

See Also:
BinaryOperator, FloatUnaryOperator

Method Summary
 float applyAsFloat(float left, float right)
          Applies this operator to the given operands.
 

Method Detail

applyAsFloat

float applyAsFloat(float left,
                   float right)
Applies this operator to the given operands.

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