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.

@FunctionalInterface public interface CharBinaryOperator extends BinaryOperator<@NotNull Character>
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 Type
    Method
    Description
    default @NotNull Character
    apply(@NotNull Character left, @NotNull Character right)
     
    char
    applyAsChar(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 operand
      right - 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:
      apply in interface BiFunction<Character,Character,Character>