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