@FunctionalInterface
public interface DoubleUnaryOperator
extends java.util.function.DoubleUnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default DoubleUnaryOperator |
andThen(DoubleUnaryOperator after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
double |
applyAsDouble(double k)
Type Specific get function to reduce boxing/unboxing
|
default DoubleUnaryOperator |
compose(DoubleUnaryOperator before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static DoubleUnaryOperator |
identity()
Creates a Default function that returns the input provided.
|
double applyAsDouble(double k)
applyAsDouble in interface java.util.function.DoubleUnaryOperatork - the value that should be processedstatic DoubleUnaryOperator identity()
identity in interface java.util.function.DoubleUnaryOperatordefault DoubleUnaryOperator compose(DoubleUnaryOperator 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 DoubleUnaryOperator andThen(DoubleUnaryOperator 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