软件包 | 描述 |
---|---|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
default DoubleUnaryOperator |
DoubleUnaryOperator.andThen(DoubleUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
default DoubleUnaryOperator |
DoubleUnaryOperator.compose(DoubleUnaryOperator before)
返回一个由运营商,首先
before 操作员输入,然后将该操作的结果。
|
static DoubleUnaryOperator |
DoubleUnaryOperator.identity()
返回一元运算符总是返回它的输入参数。
|
Modifier and Type | Method and Description |
---|---|
default DoubleUnaryOperator |
DoubleUnaryOperator.andThen(DoubleUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
default DoubleUnaryOperator |
DoubleUnaryOperator.compose(DoubleUnaryOperator before)
返回一个由运营商,首先
before 操作员输入,然后将该操作的结果。
|
Modifier and Type | Method and Description |
---|---|
static DoubleStream |
DoubleStream.iterate(double seed, DoubleUnaryOperator f)
返回一个无穷序列有序
DoubleStream 由最初的一元
seed 函数的
f 迭代应用产生的,产生一个由
seed ,
f(seed) ,
f(f(seed))
Stream ,等。
|
DoubleStream |
DoubleStream.map(DoubleUnaryOperator mapper)
返回一个流,包括将给定函数应用到该流元素的结果。
|
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.