public class WeakHashMap extends AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
WeakHashMap() |
WeakHashMap(int hardSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Set |
entrySet() |
Object |
get(Object key) |
Object |
put(Object key,
Object value)
Here we put the key, value pair into the HashMap using
a SoftValue object.
|
Object |
remove(Object key) |
int |
size() |
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
public Object remove(Object key)
remove
in interface Map
remove
in class AbstractMap
public void clear()
clear
in interface Map
clear
in class AbstractMap
public int size()
size
in interface Map
size
in class AbstractMap
public Set entrySet()
entrySet
in interface Map
entrySet
in class AbstractMap
© 1998- 2021 Escenic AS