| 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 |
|---|---|
Object |
Provider.compute(Object
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
Object |
Provider.computeIfPresent(Object
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
|
Object |
Provider.merge(Object
If the specified key is not already associated with a value or is associated with null, associates it with the given value.
|
void |
Provider.replaceAll(BiFunction
Replaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception.
|
| Modifier and Type | Method and Description |
|---|---|
default V |
Map.compute(K key, BiFunction
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
V |
HashMap.compute(K key, BiFunction
|
V |
Hashtable.compute(K key, BiFunction
|
default V |
Map.computeIfPresent(K key, BiFunction
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
|
V |
HashMap.computeIfPresent(K key, BiFunction
|
V |
Hashtable.computeIfPresent(K key, BiFunction
|
default V |
Map.merge(K key, V value, BiFunction
If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value.
|
V |
HashMap.merge(K key, V value, BiFunction
|
V |
Hashtable.merge(K key, V value, BiFunction
|
default void |
Map.replaceAll(BiFunction
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
|
void |
HashMap.replaceAll(BiFunction
|
void |
LinkedHashMap.replaceAll(BiFunction
|
void |
Hashtable.replaceAll(BiFunction
|
void |
WeakHashMap.replaceAll(BiFunction
|
void |
IdentityHashMap.replaceAll(BiFunction
|
void |
TreeMap.replaceAll(BiFunction
|
| Modifier and Type | Method and Description |
|---|---|
V |
ConcurrentHashMap.compute(K key, BiFunction
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
V |
ConcurrentSkipListMap.compute(K key, BiFunction
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
default V |
ConcurrentMap.compute(K key, BiFunction
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
V |
ConcurrentHashMap.computeIfPresent(K key, BiFunction
If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value.
|
V |
ConcurrentSkipListMap.computeIfPresent(K key, BiFunction
If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value.
|
default V |
ConcurrentMap.computeIfPresent(K key, BiFunction
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
|
<U> void |
ConcurrentHashMap.forEach(long parallelismThreshold, BiFunction
Performs the given action for each non-null transformation of each (key, value).
|
<U> CompletionStage |
CompletionStage.handle(BiFunction
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed with this stage's result and exception as arguments to the supplied function.
|
<U> CompletableFuture |
CompletableFuture.handle(BiFunction
|
<U> CompletionStage |
CompletionStage.handleAsync(BiFunction
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using this stage's default asynchronous execution facility, with this stage's result and exception as arguments to the supplied function.
|
<U> CompletableFuture |
CompletableFuture.handleAsync(BiFunction
|
<U> CompletionStage |
CompletionStage.handleAsync(BiFunction
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using the supplied executor, with this stage's result and exception as arguments to the supplied function.
|
<U> CompletableFuture |
CompletableFuture.handleAsync(BiFunction
|
V |
ConcurrentHashMap.merge(K key, V value, BiFunction
If the specified key is not already associated with a (non-null) value, associates it with the given value.
|
V |
ConcurrentSkipListMap.merge(K key, V value, BiFunction
If the specified key is not already associated with a value, associates it with the given value.
|
default V |
ConcurrentMap.merge(K key, V value, BiFunction
If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value.
|
<U> U |
ConcurrentHashMap.reduce(long parallelismThreshold, BiFunction
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, or null if none.
|
<U> U |
ConcurrentHashMap.reduce(long parallelismThreshold, BiFunction
Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, or null if none.
|
Map |
ConcurrentHashMap.reduceEntries(long parallelismThreshold, BiFunction
Returns the result of accumulating all entries using the given reducer to combine values, or null if none.
|
<U> U |
ConcurrentHashMap.reduceEntries(long parallelismThreshold, Function
Returns the result of accumulating the given transformation of all entries using the given reducer to combine values, or null if none.
|
K |
ConcurrentHashMap.reduceKeys(long parallelismThreshold, BiFunction
Returns the result of accumulating all keys using the given reducer to combine values, or null if none.
|
<U> U |
ConcurrentHashMap.reduceKeys(long parallelismThreshold, Function
Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, or null if none.
|
V |
ConcurrentHashMap.reduceValues(long parallelismThreshold, BiFunction
Returns the result of accumulating all values using the given reducer to combine values, or null if none.
|
<U> U |
ConcurrentHashMap.reduceValues(long parallelismThreshold, Function
Returns the result of accumulating the given transformation of all values using the given reducer to combine values, or null if none.
|
void |
ConcurrentHashMap.replaceAll(BiFunction
|
void |
ConcurrentSkipListMap.replaceAll(BiFunction
|
default void |
ConcurrentMap.replaceAll(BiFunction
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
|
<U> U |
ConcurrentHashMap.search(long parallelismThreshold, BiFunction
Returns a non-null result from applying the given search function on each (key, value), or null if none.
|
<U |
CompletionStage.thenCombine(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 function.
|
<U |
CompletableFuture.thenCombine(CompletionStage
|
<U |
CompletionStage.thenCombineAsync(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 function.
|
<U |
CompletableFuture.thenCombineAsync(CompletionStage
|
<U |
CompletionStage.thenCombineAsync(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.thenCombineAsync(CompletionStage
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BinaryOperator<T>
Represents an operation upon two operands of the same type, producing a result of the same type as the operands.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> BiFunction |
BiFunction.andThen(Function
Returns a composed function that first applies this function to its input, and then applies the
after function to the result.
|
| Modifier and Type | Method and Description |
|---|---|
<U> U |
Stream.reduce(U identity, BiFunction
Performs a
reduction on the elements of this stream, using the provided identity, accumulation and combining functions.
|