@FunctionalInterface public interface DoubleUnaryOperator
double
-valued操作产生的一个
double
-valued结果操作。这是
double
的
UnaryOperator
原始类型的专业化。
这是一个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
如果是空的
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.