K - the type of the keys of this map.V - the type of the values of this map.@Mutable public interface ConcurrentMap<K,V> extends ConcurrentMap<K,V>, Cloneable
ConcurrentMap interface with useful methods.ConcurrentHashMap| Modifier and Type | Method and Description |
|---|---|
@Nonnull ConcurrentMap<K,V> |
clone()
Returns a shallow copy of this map (the keys and values themselves are not cloned).
|
V |
putIfAbsentElseReturnPresent(K key,
V value)
Associates the given value with the given key, if the
given key is not already associated with another value.
|
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll@Impure @NonCapturable @Nonnull V putIfAbsentElseReturnPresent(@Captured @Nonnull K key, @Captured @Nonnull V value)
@Pure @Capturable @Nonnull @Nonnull ConcurrentMap<K,V> clone()
Copyright © 2017. All rights reserved.