Package org.biojava.nbio.ontology.utils
Class WeakValueHashMap
java.lang.Object
java.util.AbstractMap
org.biojava.nbio.ontology.utils.WeakValueHashMap
- All Implemented Interfaces:
 Map
Map implementation which keeps weak references to values.
 Entries are removed from the map when their value is
 no longer reachable using normal (hard) references.  This is
 useful for maintaining canonical copies of objects without forcing
 these objects to remain in memory forever.
 
 Note that this is distinct from the standard library class,
 WeakHashMap which has weak keys.
 
- Since:
 - 1.3
 - Author:
 - Thomas Down
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V>  - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll 
- 
Constructor Details
- 
WeakValueHashMap
public WeakValueHashMap() 
 - 
 - 
Method Details
- 
put
- Specified by:
 putin interfaceMap- Overrides:
 putin classAbstractMap
 - 
get
- Specified by:
 getin interfaceMap- Overrides:
 getin classAbstractMap
 - 
containsKey
- Specified by:
 containsKeyin interfaceMap- Overrides:
 containsKeyin classAbstractMap
 - 
entrySet
- Specified by:
 entrySetin interfaceMap- Specified by:
 entrySetin classAbstractMap
 
 -