@FunctionalInterface public interface ByteBinaryOperator extends ByteByteToByteFunction
byte
-valued operands and producing a
byte
-valued result. This is the primitive type specialization of
BinaryOperator
for byte
.
Unlike ByteByteToByteFunction
, this operator is supposed to accept two homogeneous
arguments and produce a result homogeneous to the arguments, e. g. value merging
in ObjByteMap.merge(Object, byte, ByteBinaryOperator)
method.
BinaryOperator
,
ByteUnaryOperator
Modifier and Type | Method and Description |
---|---|
byte |
applyAsByte(byte left,
byte right)
Applies this operator to the given operands.
|
byte applyAsByte(byte left, byte right)
applyAsByte
in interface ByteByteToByteFunction
left
- the first operandright
- the second operand