@FunctionalInterface
public interface FloatBinaryOperator
extends java.util.function.BinaryOperator<java.lang.Float>, java.util.function.DoubleBinaryOperator
BinaryOperator
; provides methods operating both on objects
and on primitives.BinaryOperator
Modifier and Type | Method and Description |
---|---|
float |
apply(float x,
float y)
Computes the operator on the given inputs.
|
default java.lang.Float |
apply(java.lang.Float x,
java.lang.Float y)
Deprecated.
Please use the corresponding type-specific method instead.
|
default double |
applyAsDouble(double x,
double y)
Deprecated.
Please use
apply(float, float) . |
float apply(float x, float y)
x
- the first input.y
- the second input.@Deprecated default double applyAsDouble(double x, double y)
apply(float, float)
.applyAsDouble
in interface java.util.function.DoubleBinaryOperator
java.lang.IllegalArgumentException
- If the given operands are not an element of the key domain.apply(float, float)
after narrowing down the arguments to the
actual key type, throwing an exception if the arguments cannot be
represented in the restricted domain. This is done for interoperability
with the Java 8 function environment. The use of this method discouraged, as
unexpected errors can occur.@Deprecated default java.lang.Float apply(java.lang.Float x, java.lang.Float y)
apply
in interface java.util.function.BiFunction<java.lang.Float,java.lang.Float,java.lang.Float>