@FunctionalInterface public interface DoubleUnaryOperator
double值的操作数的操作,它产生一个double结果。
这是88457874650232的UnaryOperator的原始类型double 。
这是一个functional interface的功能方法是applyAsDouble(double) 。
UnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default DoubleUnaryOperator |
andThen(DoubleUnaryOperator after)
返回一个组合运算符,首先将该运算符应用于其输入,然后将
after运算符应用于结果。
|
double |
applyAsDouble(double operand)
将此运算符应用于给定的操作数。
|
default DoubleUnaryOperator |
compose(DoubleUnaryOperator before)
返回一个组合运算符,首先将
before运算符应用于其输入,然后将该运算符应用于结果。
|
static DoubleUnaryOperator |
identity()
返回始终返回其输入参数的一元运算符。
|
double applyAsDouble(double operand)
operand - 操作数
default DoubleUnaryOperator compose(DoubleUnaryOperator before)
before运算符应用于其输入,然后将该运算符应用于结果。
如果任一运算符的评估引发异常,则将其中继到组合运算符的调用者。
before - 应用该操作员之前应用的操作员
before运算符,然后应用此运算符
NullPointerException - 如果以前是空
andThen(DoubleUnaryOperator)
default DoubleUnaryOperator andThen(DoubleUnaryOperator after)
after运算符应用于结果。
如果任一运算符的评估引发异常,则将其中继到组合运算符的调用者。
after - 应用此操作符后应用的操作员
after操作符
NullPointerException - 如果after为null
compose(DoubleUnaryOperator)
static 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, 2014, Oracle and/or its affiliates. All rights reserved.