软件包 | 描述 |
---|---|
java.util.concurrent.atomic |
一个支持单变量无锁线程安全编程的类的小工具包。
|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
long |
AtomicLongArray.getAndUpdate(int i, LongUnaryOperator updateFunction)
自动更新的元素在指数
i 结果应用给定的函数,返回前一个值。
|
long |
AtomicLong.getAndUpdate(LongUnaryOperator updateFunction)
自动更新当前值与结果应用给定的函数,返回前一个值。
|
long |
AtomicLongFieldUpdater.getAndUpdate(T obj, LongUnaryOperator updateFunction)
自动更新领域的给定对象的更新管理与应用结果给定的函数,返回前一个值。
|
long |
AtomicLongArray.updateAndGet(int i, LongUnaryOperator updateFunction)
自动更新的元素在指数
i 结果应用给定的函数,返回更新后的值。
|
long |
AtomicLong.updateAndGet(LongUnaryOperator updateFunction)
自动更新当前值与结果应用给定的函数,返回更新后的值。
|
long |
AtomicLongFieldUpdater.updateAndGet(T obj, LongUnaryOperator updateFunction)
自动更新领域的给定对象的更新管理与应用结果给定的函数,返回更新后的值。
|
Modifier and Type | Method and Description |
---|---|
default LongUnaryOperator |
LongUnaryOperator.andThen(LongUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
default LongUnaryOperator |
LongUnaryOperator.compose(LongUnaryOperator before)
返回一个由运营商,首先
before 操作员输入,然后将该操作的结果。
|
static LongUnaryOperator |
LongUnaryOperator.identity()
返回一元运算符总是返回它的输入参数。
|
Modifier and Type | Method and Description |
---|---|
default LongUnaryOperator |
LongUnaryOperator.andThen(LongUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
default LongUnaryOperator |
LongUnaryOperator.compose(LongUnaryOperator before)
返回一个由运营商,首先
before 操作员输入,然后将该操作的结果。
|
Modifier and Type | Method and Description |
---|---|
static LongStream |
LongStream.iterate(long seed, LongUnaryOperator f)
返回一个无穷序列有序
LongStream 由最初的一元
seed 函数的
f 迭代应用产生的,产生一个由
seed ,
f(seed) ,
f(f(seed))
Stream ,等。
|
LongStream |
LongStream.map(LongUnaryOperator 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.