Interface CharBinaryOperator
- All Superinterfaces:
BiFunction<Character,,Character, Character> BinaryOperator<@NotNull Character>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation on a single
char operand that produces a char result.
This is the primitive type specialization of UnaryOperator for char.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull CharactercharapplyAsChar(char left, char right) Applies this operator to the given operands.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
applyAsChar
char applyAsChar(char left, char right) Applies this operator to the given operands.- Parameters:
left- the first operandright- the second operand- Returns:
- result of applying this operation to the operands
-
apply
@Contract("null, _ -> fail; _, null -> fail; _ -> _") @NotNull default @NotNull Character apply(@NotNull @NotNull Character left, @NotNull @NotNull Character right) - Specified by:
applyin interfaceBiFunction<Character,Character, Character>
-