Package com.intellij.util.containers
Class WeakHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.intellij.util.containers.WeakHashMap<K,V>
-
- All Implemented Interfaces:
Map<K,V>
public final class WeakHashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>
Fully copied from java.util.WeakHashMap except "get" method optimization.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description WeakHashMap()
WeakHashMap(int initialCapacity)
WeakHashMap(int initialCapacity, float loadFactor)
WeakHashMap(Map t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
boolean
isEmpty()
V
put(K key, V value)
V
remove(Object key)
int
size()
-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, keySet, putAll, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, values
-
-
-
-
Constructor Detail
-
WeakHashMap
public WeakHashMap(int initialCapacity, float loadFactor)
-
WeakHashMap
public WeakHashMap(int initialCapacity)
-
WeakHashMap
public WeakHashMap()
-
WeakHashMap
public WeakHashMap(Map t)
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
- Overrides:
containsKey
in classAbstractMap<K,V>
-
clear
public void clear()
-
-