Interface FloatBinaryOperator

All Superinterfaces:
BiFunction<Float,Float,Float>, BinaryOperator<@NotNull Float>
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 FloatBinaryOperator extends BinaryOperator<@NotNull Float>
Represents an operation on a single float operand that produces a float result. This is the primitive type specialization of UnaryOperator for float.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull Float
    apply(@NotNull Float left, @NotNull Float right)
     
    float
    applyAsFloat(float left, float right)
    Applies this operator to the given operands.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • applyAsFloat

      float applyAsFloat(float left, float right)
      Applies this operator to the given operands.
      Parameters:
      left - the first operand
      right - the second operand
      Returns:
      result of applying this operation to the operands
    • apply

      @Contract("null, _ -> fail; _, null -> fail; _ -> _") @NotNull default @NotNull Float apply(@NotNull @NotNull Float left, @NotNull @NotNull Float right)
      Specified by:
      apply in interface BiFunction<Float,Float,Float>