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.
A function that accepts a
char
and returns a char.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptioncharapply(char e) Applies the function.static CharToCharFunctionidentity()Returns thecharidentity function.
-
Method Details
-
apply
char apply(char e) Applies the function.- Parameters:
e- The argument.- Returns:
- The result.
-
identity
Returns thecharidentity function. The identity function always returns the input argument.- Returns:
- The identity function.
-