Interface FloatConsumer

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 FloatConsumer
Functional interface to apply an operation to a single float.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(float value)
    Apply this operation to value.
    andThen(@NotNull FloatConsumer after)
    Return a composed FloatConsumer that applies this operation followed by after.
  • Method Details

    • accept

      void accept(float value)
      Apply this operation to value.
      Parameters:
      value - The float to operate one
    • andThen

      default FloatConsumer andThen(@NotNull @NotNull FloatConsumer after)
      Return a composed FloatConsumer that applies this operation followed by after.
      Parameters:
      after - The FloatConsumer to apply after applying this
      Returns:
      A composed FloatConsumer that applies this followed by after