Interface ToFloatFunction<T>

Type Parameters:
T - the type of the input to the function.
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 ToFloatFunction<T>
Represents a function that produces a float-valued result. This is the float-producing primitive specialization for Function.

There is no ToFloatFunction interface in java.util.function.

  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Applies this function to the given argument.
  • Method Details

    • applyAsFloat

      float applyAsFloat(T o)
      Applies this function to the given argument.
      Parameters:
      o - the input object.
      Returns:
      the function value.