public interface IntBinaryOperator extends IntIntToIntFunction
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.
BinaryOperator
,
IntUnaryOperator
Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(int left,
int right)
Applies this operator to the given operands.
|
int applyAsInt(int left, int right)
applyAsInt
in interface IntIntToIntFunction
left
- the first operandright
- the second operand