com.koloboke.function
Interface IntBinaryOperator

All Superinterfaces:
IntIntToIntFunction

public interface IntBinaryOperator
extends IntIntToIntFunction

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

Unlike IntIntToIntFunction, this operator is supposed to accept two homogeneous arguments and produce a result homogeneous to the arguments, e. g. value merging in ObjIntMap.merge(Object, int, IntBinaryOperator) method.

See Also:
BinaryOperator, IntUnaryOperator

Method Summary
 int applyAsInt(int left, int right)
          Applies this operator to the given operands.
 

Method Detail

applyAsInt

int applyAsInt(int left,
               int right)
Applies this operator to the given operands.

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