com.koloboke.function
Interface ShortBinaryOperator

All Superinterfaces:
ShortShortToShortFunction

public interface ShortBinaryOperator
extends ShortShortToShortFunction

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

Unlike ShortShortToShortFunction, this operator is supposed to accept two homogeneous arguments and produce a result homogeneous to the arguments, e. g. value merging in ObjShortMap.merge(Object, short, ShortBinaryOperator) method.

See Also:
BinaryOperator, ShortUnaryOperator

Method Summary
 short applyAsShort(short left, short right)
          Applies this operator to the given operands.
 

Method Detail

applyAsShort

short applyAsShort(short left,
                   short right)
Applies this operator to the given operands.

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