net.ontopia.utils
Class HashMapIndex
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
net.ontopia.utils.HashMapIndex
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, LookupIndexIF
public class HashMapIndex
- extends java.util.HashMap
- implements LookupIndexIF
INTERNAL: A lookup index that extends HashMap. It never forgets
what it is told using put(), but will, if given a fallback object,
ask the fallback for values it does not have.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
get(java.lang.Object key)
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
HashMapIndex
public HashMapIndex()
HashMapIndex
public HashMapIndex(java.util.Map map)
HashMapIndex
public HashMapIndex(LookupIndexIF fallback)
HashMapIndex
public HashMapIndex(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.HashMap
Copyright © 2000-2009 Ontopia.