Interface FloatSupplier

All Known Implementing Classes:
FloatConstantSupplier
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 FloatSupplier
Float supplier
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets float value
    static @NotNull FloatConstantSupplier
    of(float value)
    Creates supplier by given value
  • Method Details

    • getAsFloat

      float getAsFloat()
      Gets float value
      Returns:
      float value
    • of

      @NotNull static @NotNull FloatConstantSupplier of(float value)
      Creates supplier by given value
      Parameters:
      value - val ue
      Returns:
      supplier