com.koloboke.function
Interface ByteBinaryOperator

All Superinterfaces:
ByteByteToByteFunction

public interface ByteBinaryOperator
extends ByteByteToByteFunction

Represents an operation upon two 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.

See Also:
BinaryOperator, ByteUnaryOperator

Method Summary
 byte applyAsByte(byte left, byte right)
          Applies this operator to the given operands.
 

Method Detail

applyAsByte

byte applyAsByte(byte left,
                 byte right)
Applies this operator to the given operands.

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