Interface IntToIntFunction
- 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 an
int
and returns an int.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionintapply(int e) Applies the function.static IntToIntFunctionidentity()Returns theintidentity function.
-
Method Details
-
apply
int apply(int e) Applies the function.- Parameters:
e- The argument.- Returns:
- The result.
-
identity
Returns theintidentity function. The identity function always returns the input argument.- Returns:
- The identity function.
-