Interface CharToCharFunction

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 CharToCharFunction
A function that accepts a char and returns a char.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    char
    apply(char e)
    Applies the function.
    Returns the char identity function.
  • Method Details

    • apply

      char apply(char e)
      Applies the function.
      Parameters:
      e - The argument.
      Returns:
      The result.
    • identity

      static CharToCharFunction identity()
      Returns the char identity function. The identity function always returns the input argument.
      Returns:
      The identity function.