com.koloboke.function
Interface LongBinaryOperator

All Superinterfaces:
LongLongToLongFunction

public interface LongBinaryOperator
extends LongLongToLongFunction

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

Unlike LongLongToLongFunction, this operator is supposed to accept two homogeneous arguments and produce a result homogeneous to the arguments, e. g. value merging in ObjLongMap.merge(Object, long, LongBinaryOperator) method.

See Also:
BinaryOperator, LongUnaryOperator

Method Summary
 long applyAsLong(long left, long right)
          Applies this operator to the given operands.
 

Method Detail

applyAsLong

long applyAsLong(long left,
                 long right)
Applies this operator to the given operands.

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