@FunctionalInterface public interface DoubleUnaryOperator
double
operand yielding a double
result. This is the primitive type specialization of UnaryOperator
for double
.UnaryOperator
Modifier and Type | Method and Description |
---|---|
default DoubleUnaryOperator |
andThen(DoubleUnaryOperator after)
Compose a new function which applies this function followed by the
provided function.
|
double |
applyAsDouble(double operand)
Returns the
double result of the operation upon the
double operand. |
default DoubleUnaryOperator |
compose(DoubleUnaryOperator before)
Compose a new function which applies the provided function followed by
this function.
|
static DoubleUnaryOperator |
identity()
Returns a unary operator that provides its input value as the result.
|
double applyAsDouble(double operand)
double
result of the operation upon the
double
operand.operand
- the operand valuedefault DoubleUnaryOperator compose(DoubleUnaryOperator before)
before
- An additional function to be applied before this function
is appliedNullPointerException
- if before is nulldefault DoubleUnaryOperator andThen(DoubleUnaryOperator after)
after
- An additional function to be applied after this function is
appliedNullPointerException
- if after is nullstatic DoubleUnaryOperator identity()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0