Package com.intellij.util.containers
Class LockPoolSynchronizedMap<K,V>
- java.lang.Object
-
- gnu.trove.impl.hash.THash
-
- gnu.trove.impl.hash.TObjectHash<K>
-
- gnu.trove.map.hash.THashMap<K,V>
-
- com.intellij.util.containers.LockPoolSynchronizedMap<K,V>
-
- All Implemented Interfaces:
gnu.trove.map.TMap<K,V>,Externalizable,Serializable,ConcurrentMap<K,V>,Map<K,V>
public class LockPoolSynchronizedMap<K,V> extends gnu.trove.map.hash.THashMap<K,V> implements ConcurrentMap<K,V>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockPoolSynchronizedMap()LockPoolSynchronizedMap(int initialCapacity)LockPoolSynchronizedMap(int initialCapacity, float loadFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()LockPoolSynchronizedMap<K,V>clone()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()Vget(Object key)booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)VputIfAbsent(K key, V value)Vremove(Object key)booleanremove(Object key, Object oldValue)Vreplace(K key, V newValue)booleanreplace(K key, V oldValue, V newValue)intsize()Collection<V>values()-
Methods inherited from class gnu.trove.map.hash.THashMap
equals, forEachEntry, forEachKey, forEachValue, hashCode, readExternal, rehash, removeAt, retainEntries, setUp, toString, transformValues, writeExternal
-
Methods inherited from class gnu.trove.impl.hash.TObjectHash
buildObjectContractViolation, capacity, contains, dumpExtraInfo, equals, forEach, hash, index, insertionIndex, insertKey, objectInfo, reportPotentialConcurrentMod, throwObjectContractViolation, throwObjectContractViolation
-
Methods inherited from class gnu.trove.impl.hash.THash
calculateGrownCapacity, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, getAutoCompactionFactor, postInsertHook, reenableAutoCompaction, setAutoCompactionFactor, tempDisableAutoCompaction, trimToSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
clear
public void clear()
-
clone
public LockPoolSynchronizedMap<K,V> clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
values
public Collection<V> values()
-
putIfAbsent
public V putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
putIfAbsentin interfaceMap<K,V>- Specified by:
putIfAbsentin interfacegnu.trove.map.TMap<K,V>- Overrides:
putIfAbsentin classgnu.trove.map.hash.THashMap<K,V>
-
-