@FunctionalInterface
public interface FloatUnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default FloatUnaryOperator |
andThen(FloatUnaryOperator after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
float |
applyAsFloat(float k)
Type Specific get function to reduce boxing/unboxing
|
default FloatUnaryOperator |
compose(FloatUnaryOperator before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static FloatUnaryOperator |
identity()
Creates a Default function that returns the input provided.
|
float applyAsFloat(float k)
k - the value that should be processedstatic FloatUnaryOperator identity()
default FloatUnaryOperator compose(FloatUnaryOperator before)
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.before - the function that should be used firstdefault FloatUnaryOperator andThen(FloatUnaryOperator after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.after - the function that should be used last