public class WeakValueHashMap extends AbstractMap
Note that this is distinct from the standard library class,
WeakHashMap
which has weak keys.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
WeakValueHashMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object o) |
Set |
entrySet() |
Object |
get(Object key) |
Object |
put(Object key,
Object value) |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public WeakValueHashMap()
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
public boolean containsKey(Object o)
containsKey
in interface Map
containsKey
in class AbstractMap
Copyright © 2000–2018 BioJava. All rights reserved.