软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
void |
Provider.forEach(BiConsumer<? super Object,? super Object> action) |
Modifier and Type | Method and Description |
---|---|
void |
IdentityHashMap.forEach(BiConsumer<? super K,? super V> action) |
void |
WeakHashMap.forEach(BiConsumer<? super K,? super V> action) |
void |
HashMap.forEach(BiConsumer<? super K,? super V> action) |
void |
LinkedHashMap.forEach(BiConsumer<? super K,? super V> action) |
void |
Hashtable.forEach(BiConsumer<? super K,? super V> action) |
void |
TreeMap.forEach(BiConsumer<? super K,? super V> action) |
default void |
Map.forEach(BiConsumer<? super K,? super V> action)
在该映射中的每个条目执行给定的操作,直到所有的条目被处理或操作抛出异常。
|
Modifier and Type | Method and Description |
---|---|
void |
ConcurrentSkipListMap.forEach(BiConsumer<? super K,? super V> action) |
default void |
ConcurrentMap.forEach(BiConsumer<? super K,? super V> action)
在该映射中的每个条目执行给定的操作,直到所有的条目被处理或操作抛出异常。
|
void |
ConcurrentHashMap.forEach(BiConsumer<? super K,? super V> action) |
void |
ConcurrentHashMap.forEach(long parallelismThreshold, BiConsumer<? super K,? super V> action)
为每个执行给定的操作(键,值)。
|
<U> CompletionStage<Void> |
CompletionStage.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
返回一个新的completionstage,当和其他阶段都完全正常,是执行了两结果提供的操作参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
<U> CompletionStage<Void> |
CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,利用这个阶段的默认的异步执行机构执行,与两结果提供的操作参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
<U> CompletionStage<Void> |
CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,使用提供的遗嘱执行人执行,与两结果提供的函数参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor) |
CompletionStage<T> |
CompletionStage.whenComplete(BiConsumer<? super T,? super Throwable> action)
返回相同的结果或例外,这一阶段的新completionstage,这个阶段完成时,执行特定动作的结果(或
null 如果没有)和异常(或
null 如果没有)这个阶段。
|
CompletableFuture<T> |
CompletableFuture.whenComplete(BiConsumer<? super T,? super Throwable> action) |
CompletionStage<T> |
CompletionStage.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action)
返回相同的结果或例外,这一阶段的新completionstage,这个阶段完成时,执行特定动作执行给定的操作这一阶段的默认的异步执行设施,其结果(或
null 如果没有)和异常(或
null 如果没有)这个阶段作为参数。
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action) |
CompletionStage<T> |
CompletionStage.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
返回相同的结果或例外,这一阶段的新completionstage,这个阶段完成时,执行使用所提供的遗嘱执行人,给出的行动与结果(或
null 如果没有)和异常(或
null 如果没有)这个阶段作为参数。
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor) |
Modifier and Type | Method and Description |
---|---|
default BiConsumer<T,U> |
BiConsumer.andThen(BiConsumer<? super T,? super U> after)
返回一个由
BiConsumer 执行此操作,在序列,其次是
after 操作。
|
Modifier and Type | Method and Description |
---|---|
default BiConsumer<T,U> |
BiConsumer.andThen(BiConsumer<? super T,? super U> after)
返回一个由
BiConsumer 执行此操作,在序列,其次是
after 操作。
|
Modifier and Type | Method and Description |
---|---|
BiConsumer<A,T> |
Collector.accumulator()
一个函数值为一个可变的结果折叠容器。
|
Modifier and Type | Method and Description |
---|---|
<R> R |
Stream.collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
执行该流的元素
mutable reduction操作。
|
<R> R |
Stream.collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
执行该流的元素
mutable reduction操作。
|
<R> R |
DoubleStream.collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)
执行该流的元素
mutable reduction操作。
|
<R> R |
IntStream.collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R,R> combiner)
执行该流的元素
mutable reduction操作。
|
<R> R |
LongStream.collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R,R> combiner)
执行该流的元素
mutable reduction操作。
|
static <T,A,R> Collector<T,A,R> |
Collector.of(Supplier<A> supplier, BiConsumer<A,T> accumulator, BinaryOperator<A> combiner, Function<A,R> finisher, Collector.Characteristics... characteristics)
返回一个新的
Collector 由给定的
supplier ,
accumulator ,
combiner 描述,和
finisher 功能。
|
static <T,R> Collector<T,R,R> |
Collector.of(Supplier<R> supplier, BiConsumer<R,T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics)
返回一个新的
Collector 由给定的
supplier ,
accumulator 描述,和
combiner 功能。
|
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.