net.ontopia.utils
Class WeakHashMapIndex
java.lang.Object
java.util.AbstractMap<K,V>
java.util.WeakHashMap
net.ontopia.utils.WeakHashMapIndex
- All Implemented Interfaces:
- java.util.Map, LookupIndexIF
public class WeakHashMapIndex
- extends java.util.WeakHashMap
- implements LookupIndexIF
INTERNAL: A lookup index that extends WeakHashMap. It forgets what
it is told using put() at the will of the garbage collector, but
will, if given a fallback object, ask the fallback for values it
does not have.
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Method Summary |
java.lang.Object |
get(java.lang.Object key)
|
Methods inherited from class java.util.WeakHashMap |
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
clone, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
fallback
protected LookupIndexIF fallback
WeakHashMapIndex
public WeakHashMapIndex()
WeakHashMapIndex
public WeakHashMapIndex(java.util.Map map)
WeakHashMapIndex
public WeakHashMapIndex(LookupIndexIF fallback)
WeakHashMapIndex
public WeakHashMapIndex(java.util.Map map,
LookupIndexIF fallback)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map
- Specified by:
get
in interface LookupIndexIF
- Overrides:
get
in class java.util.WeakHashMap
Copyright © 2000-2012 Ontopia.