Interface ConcurrentMutableMap<K,​V>

    • Method Detail

      • getOrDefault

        default V getOrDefault​(java.lang.Object key,
                               V defaultValue)
        Specified by:
        getOrDefault in interface java.util.concurrent.ConcurrentMap<K,​V>
        Specified by:
        getOrDefault in interface java.util.Map<K,​V>
        Specified by:
        getOrDefault in interface MapIterable<K,​V>
        Specified by:
        getOrDefault in interface MutableMapIterable<K,​V>
      • forEach

        default void forEach​(java.util.function.BiConsumer<? super K,​? super V> action)
        Specified by:
        forEach in interface java.util.concurrent.ConcurrentMap<K,​V>
        Specified by:
        forEach in interface java.util.Map<K,​V>
        Specified by:
        forEach in interface MapIterable<K,​V>
        Specified by:
        forEach in interface MutableMapIterable<K,​V>
      • merge

        V merge​(K key,
                V value,
                java.util.function.BiFunction<? super V,​? super V,​? extends V> remappingFunction)
        A concurrent implementation of ConcurrentMap.merge(Object, Object, BiFunction) and Map.merge(Object, Object, BiFunction). In the implementing classes, it is possible for the remappingFunction to be called multiple times. It is also possible for the remappingFunction to be called one or more times, but the result is not used (because the old entry was concurrently removed).
        Specified by:
        merge in interface java.util.concurrent.ConcurrentMap<K,​V>
        Specified by:
        merge in interface java.util.Map<K,​V>