Interface FloatFunction<T>

Type Parameters:
T - type
All Known Implementing Classes:
FloatConstantFunction
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 FloatFunction<T>
Float function
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(float value)
    Applies float
    default <R> @NotNull FloatFunction<R>
    map(@NotNull Function<T,R> mapper)
    Maps this function to new type
    default @NotNull FloatFunction<T>
    Memoize this function
    static <T> @NotNull FloatConstantFunction<T>
    of(T t)
    Creates constant function by given value
  • Method Details

    • apply

      @NotNull T apply(float value)
      Applies float
      Parameters:
      value - float value
      Returns:
      applied value
    • of

      @NotNull static <T> @NotNull FloatConstantFunction<T> of(@NotNull T t)
      Creates constant function by given value
      Type Parameters:
      T - type
      Parameters:
      t - value
      Returns:
      constant function
    • map

      @NotNull default <R> @NotNull FloatFunction<R> map(@NotNull @NotNull Function<T,R> mapper)
      Maps this function to new type
      Type Parameters:
      R - return type
      Parameters:
      mapper - mapper
      Returns:
      mapped function
    • memoize

      @NotNull default @NotNull FloatFunction<T> memoize()
      Memoize this function
      Returns:
      memoized function