@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.