@FunctionalInterface public interface FloatUnaryOperator
Represents an operation that takes a float-valued operand and produces
a float-valued result. This is a specialization of
UnaryOperator for float.
This is a functional interface whose functional method is applyAsFloat(float).
| Type Params | Return Type | Name and description |
|---|---|---|
|
public FloatUnaryOperator |
andThen(FloatUnaryOperator after)Creates a "forward" composed operator that first applies this operator to its input, and then applies the after operator to the result. |
|
public float |
applyAsFloat(float operand)Applies this operator. |
|
public FloatUnaryOperator |
compose(FloatUnaryOperator before)Creates a "backward" composed operator that first applies the before
operator to its input, and then applies this operator to the result. |
|
public static FloatUnaryOperator |
identity()Returns the identity float unary operator. |
Creates a "forward" composed operator that first applies this operator to
its input, and then applies the after operator to the result.
after - the operator to apply after this operator is appliedApplies this operator.
operand - the operand Creates a "backward" composed operator that first applies the before
operator to its input, and then applies this operator to the result.
before - the operator to apply before this operator is appliedReturns the identity float unary operator.