| Modifier and Type | Method and Description |
|---|---|
| public default void | forEach(BiConsumer<? super K, ? super V> action)
Overrides default org. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| public default V | getOrDefault(Object key, V defaultValue)
Overrides default org. Returns the value to which the specified key is mapped, or
|
| public V | merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction)
Redeclares as abstract: java. A concurrent implementation of |
| public ConcurrentMutableMap | tap(Procedure<? super V> procedure)
Redeclares org. Executes the Procedure for each value of the map and returns |
| public default ConcurrentMutableMap | withMap(Map<? extends K, ? extends V> map)
Overrides default org. Similar to |
| public default ConcurrentMutableMap | withMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| forEach | back to summary |
|---|---|
| public default void forEach(BiConsumer<? super K, ? super V> action) Overrides default org. Doc from java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
| |
| getOrDefault | back to summary |
|---|---|
| public default V getOrDefault(Object key, V defaultValue) Overrides default org. Doc from java. Returns the value to which the specified key is mapped, or
| |
| merge | back to summary |
|---|---|
| public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) Redeclares as abstract: java. A concurrent implementation of
| |
| tap | back to summary |
|---|---|
| public ConcurrentMutableMap Redeclares org. Doc from org. Executes the Procedure for each value of the map and returns return peopleByCity.tap(person -> LOGGER.info(person.getName()));
| |
| withMap | back to summary |
|---|---|
| public default ConcurrentMutableMap Overrides default org. Doc from org. Similar to
| |
| withMapIterable | back to summary |
|---|---|
| public default ConcurrentMutableMap Overrides default org.
| |