软件包 | 描述 |
---|---|
java.time.temporal |
访问日期和时间的应用领域和单位,时间和日期的调节。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
java.util.concurrent.atomic |
一个支持单变量无锁线程安全编程的类的小工具包。
|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static TemporalAdjuster |
TemporalAdjusters.ofDateAdjuster(UnaryOperator<LocalDate> dateBasedAdjuster)
获得
TemporalAdjuster 包装日期调整。
|
Modifier and Type | Method and Description |
---|---|
void |
ArrayList.replaceAll(UnaryOperator<E> operator) |
void |
Vector.replaceAll(UnaryOperator<E> operator) |
default void |
List.replaceAll(UnaryOperator<E> operator)
用将运算符应用到该元素的结果替换此列表中的每个元素。
|
Modifier and Type | Method and Description |
---|---|
void |
CopyOnWriteArrayList.replaceAll(UnaryOperator<E> operator) |
Modifier and Type | Method and Description |
---|---|
E |
AtomicReferenceArray.getAndUpdate(int i, UnaryOperator<E> updateFunction)
自动更新的元素在指数
i 结果应用给定的函数,返回前一个值。
|
V |
AtomicReferenceFieldUpdater.getAndUpdate(T obj, UnaryOperator<V> updateFunction)
自动更新领域的给定对象的更新管理与应用结果给定的函数,返回前一个值。
|
V |
AtomicReference.getAndUpdate(UnaryOperator<V> updateFunction)
自动更新当前值与结果应用给定的函数,返回前一个值。
|
E |
AtomicReferenceArray.updateAndGet(int i, UnaryOperator<E> updateFunction)
自动更新的元素在指数
i 结果应用给定的函数,返回更新后的值。
|
V |
AtomicReferenceFieldUpdater.updateAndGet(T obj, UnaryOperator<V> updateFunction)
自动更新领域的给定对象的更新管理与应用结果给定的函数,返回更新后的值。
|
V |
AtomicReference.updateAndGet(UnaryOperator<V> updateFunction)
自动更新当前值与结果应用给定的函数,返回更新后的值。
|
Modifier and Type | Method and Description |
---|---|
static <T> UnaryOperator<T> |
UnaryOperator.identity()
返回一元运算符总是返回它的输入参数。
|
Modifier and Type | Method and Description |
---|---|
static <T> Stream<T> |
Stream.iterate(T seed, UnaryOperator<T> f)
返回一个无穷序列有序
Stream 由最初的一元
seed 函数的
f 迭代应用产生的,产生一个由
seed ,
f(seed) ,
f(f(seed))
Stream ,等。
|
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.