@FunctionalInterface
public interface FloatUnaryOperator
extends java.util.function.UnaryOperator<java.lang.Float>, java.util.function.DoubleUnaryOperator
UnaryOperator; provides methods operating both on objects
and on primitives.UnaryOperator| Modifier and Type | Method and Description |
|---|---|
float |
apply(float x)
Computes the operator on the given input.
|
default java.lang.Float |
apply(java.lang.Float x)
Deprecated.
Please use the corresponding type-specific method instead.
|
default double |
applyAsDouble(double x)
Deprecated.
Please use
apply(float). |
static FloatUnaryOperator |
identity()
Returns a
UnaryOperator that always returns the input unmodified. |
static FloatUnaryOperator |
negation()
Returns a
UnaryOperator that always returns the arithmetic negation of the input. |
float apply(float x)
x - the input.static FloatUnaryOperator identity()
UnaryOperator that always returns the input unmodified.identity in interface java.util.function.DoubleUnaryOperatoridentity in interface java.util.function.Function<java.lang.Float,java.lang.Float>identity in interface java.util.function.UnaryOperator<java.lang.Float>UnaryOperator.identity()static FloatUnaryOperator negation()
UnaryOperator that always returns the arithmetic negation of the input.@Deprecated default double applyAsDouble(double x)
apply(float).applyAsDouble in interface java.util.function.DoubleUnaryOperatorjava.lang.IllegalArgumentException - If the given operands are not an element of the key domain.@Deprecated default java.lang.Float apply(java.lang.Float x)
apply in interface java.util.function.Function<java.lang.Float,java.lang.Float>