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 void
clear()
LockPoolSynchronizedMap<K,V>
clone()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
boolean
isEmpty()
Set<K>
keySet()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> map)
V
putIfAbsent(K key, V value)
V
remove(Object key)
boolean
remove(Object key, Object oldValue)
V
replace(K key, V newValue)
boolean
replace(K key, V oldValue, V newValue)
int
size()
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:
clone
in classObject
- Throws:
CloneNotSupportedException
-
values
public Collection<V> values()
-
putIfAbsent
public V putIfAbsent(K key, V value)
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,V>
- Specified by:
putIfAbsent
in interfaceMap<K,V>
- Specified by:
putIfAbsent
in interfacegnu.trove.map.TMap<K,V>
- Overrides:
putIfAbsent
in classgnu.trove.map.hash.THashMap<K,V>
-
-