Interface FloatToFloatFunction

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

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

    • apply

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

      static FloatToFloatFunction identity()
      Returns the float identity function. The identity function always returns the input argument.
      Returns:
      The identity function.