| Package | Description |
|---|---|
| java.util | |
| java.util.function |
| Modifier and Type | Method and Description |
|---|---|
default V |
Map.compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
Attempts to compute a mapping for the specified key and its current
mapped value (or
null if there is no current mapping). |
default V |
Map.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
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.
|
default V |
Map.merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value or is
associated with null, associates it with the given non-null value.
|
default void |
Map.replaceAll(BiFunction<? super K,? super V,? extends V> function)
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.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> BiFunction<T,U,V> |
BiFunction.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
Copyright © 2025 API Design. All Rights Reserved.