Interface DoubleToDoubleFunction
- 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
double
and returns a double.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double e) Applies the function.static DoubleToDoubleFunctionidentity()Returns thedoubleidentity function.
-
Method Details
-
apply
double apply(double e) Applies the function.- Parameters:
e- The argument.- Returns:
- The result.
-
identity
Returns thedoubleidentity function. The identity function always returns the input argument.- Returns:
- The identity function.
-