public interface ConcurrentMutableMap<K,V> extends MutableMap<K,V>, ConcurrentMap<K,V>
| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(BiConsumer<? super K,? super V> action) |
default V |
getOrDefault(Object key,
V defaultValue) |
ConcurrentMutableMap<K,V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each value of the map and returns
this. |
default ConcurrentMutableMap<K,V> |
withMap(Map<? extends K,? extends V> map)
Similar to
Map.putAll(Map), but returns this instead of void |
default ConcurrentMutableMap<K,V> |
withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
aggregateBy, aggregateBy, aggregateInPlaceBy, asSynchronized, asUnmodifiable, clone, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectKeysAndValues, collectLong, collectShort, collectValues, collectWith, flatCollect, flatCollectWith, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, newEmpty, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, zip, zipWithIndexadd, countBy, countByEach, countByWith, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, putAllMapIterable, putPair, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, toImmutable, updateValue, updateValueWithclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuestoImmutablecontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexcompute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAllConcurrentMutableMap<K,V> tap(Procedure<? super V> procedure)
MapIterablethis.
return peopleByCity.tap(person -> LOGGER.info(person.getName()));
tap in interface MapIterable<K,V>tap in interface MutableMap<K,V>tap in interface MutableMapIterable<K,V>tap in interface RichIterable<V>tap in interface UnsortedMapIterable<K,V>RichIterable.forEach(Procedure)default V getOrDefault(Object key, V defaultValue)
getOrDefault in interface ConcurrentMap<K,V>getOrDefault in interface Map<K,V>getOrDefault in interface MapIterable<K,V>getOrDefault in interface MutableMapIterable<K,V>default ConcurrentMutableMap<K,V> withMap(Map<? extends K,? extends V> map)
MutableMapIterableMap.putAll(Map), but returns this instead of voidwithMap in interface MutableMap<K,V>withMap in interface MutableMapIterable<K,V>Map.putAll(Map)default ConcurrentMutableMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
withMapIterable in interface MutableMap<K,V>withMapIterable in interface MutableMapIterable<K,V>default void forEach(BiConsumer<? super K,? super V> action)
Copyright © 2004–2023. All rights reserved.