| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.function |
Functional interfaces provide target types for lambda expressions and method references.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Provider.forEach(BiConsumer
|
| Modifier and Type | Method and Description |
|---|---|
default void |
Map.forEach(BiConsumer
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
|
void |
HashMap.forEach(BiConsumer
|
void |
LinkedHashMap.forEach(BiConsumer
|
void |
Hashtable.forEach(BiConsumer
|
void |
WeakHashMap.forEach(BiConsumer
|
void |
IdentityHashMap.forEach(BiConsumer
|
void |
TreeMap.forEach(BiConsumer
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConcurrentHashMap.forEach(BiConsumer
|
void |
ConcurrentSkipListMap.forEach(BiConsumer
|
default void |
ConcurrentMap.forEach(BiConsumer
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
|
void |
ConcurrentHashMap.forEach(long parallelismThreshold, BiConsumer
Performs the given action for each (key, value).
|
<U> CompletionStage |
CompletionStage.thenAcceptBoth(CompletionStage
Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed with the two results as arguments to the supplied action.
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBoth(CompletionStage
|
<U> CompletionStage |
CompletionStage.thenAcceptBothAsync(CompletionStage
Returns a new CompletionStage that, when this and the other given stage complete normally, is executed using this stage's default asynchronous execution facility, with the two results as arguments to the supplied action.
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBothAsync(CompletionStage
|
<U> CompletionStage |
CompletionStage.thenAcceptBothAsync(CompletionStage
Returns a new CompletionStage that, when this and the other given stage complete normally, is executed using the supplied executor, with the two results as arguments to the supplied function.
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBothAsync(CompletionStage
|
CompletionStage |
CompletionStage.whenComplete(BiConsumer
Returns a new CompletionStage with the same result or exception as this stage, and when this stage completes, executes the given action with the result (or
null if none) and the exception (or
null if none) of this stage.
|
CompletableFuture |
CompletableFuture.whenComplete(BiConsumer
|
CompletionStage |
CompletionStage.whenCompleteAsync(BiConsumer
Returns a new CompletionStage with the same result or exception as this stage, and when this stage completes, executes the given action executes the given action using this stage's default asynchronous execution facility, with the result (or
null if none) and the exception (or
null if none) of this stage as arguments.
|
CompletableFuture |
CompletableFuture.whenCompleteAsync(BiConsumer
|
CompletionStage |
CompletionStage.whenCompleteAsync(BiConsumer
Returns a new CompletionStage with the same result or exception as this stage, and when this stage completes, executes using the supplied Executor, the given action with the result (or
null if none) and the exception (or
null if none) of this stage as arguments.
|
CompletableFuture |
CompletableFuture.whenCompleteAsync(BiConsumer
|
| Modifier and Type | Method and Description |
|---|---|
default BiConsumer |
BiConsumer.andThen(BiConsumer
Returns a composed
BiConsumer that performs, in sequence, this operation followed by the
after operation.
|
| Modifier and Type | Method and Description |
|---|---|
default BiConsumer |
BiConsumer.andThen(BiConsumer
Returns a composed
BiConsumer that performs, in sequence, this operation followed by the
after operation.
|
| Modifier and Type | Method and Description |
|---|---|
BiConsumer |
Collector.accumulator()
A function that folds a value into a mutable result container.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
Stream.collect(Supplier
Performs a
mutable reduction operation on the elements of this stream.
|
<R> R |
Stream.collect(Supplier
Performs a
mutable reduction operation on the elements of this stream.
|
<R> R |
DoubleStream.collect(Supplier
Performs a
mutable reduction operation on the elements of this stream.
|
<R> R |
IntStream.collect(Supplier
Performs a
mutable reduction operation on the elements of this stream.
|
<R> R |
LongStream.collect(Supplier
Performs a
mutable reduction operation on the elements of this stream.
|
static <T |
Collector.of(Supplier
Returns a new
Collector described by the given
supplier,
accumulator,
combiner, and
finisher functions.
|
static <T |
Collector.of(Supplier
Returns a new
Collector described by the given
supplier,
accumulator, and
combiner functions.
|