public interface LongBinaryOperator extends LongLongToLongFunction
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.
BinaryOperator
,
LongUnaryOperator
Modifier and Type | Method and Description |
---|---|
long |
applyAsLong(long left,
long right)
Applies this operator to the given operands.
|
long applyAsLong(long left, long right)
applyAsLong
in interface LongLongToLongFunction
left
- the first operandright
- the second operand