net.ontopia.utils
Class HashMapIndex

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by 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

Constructor Summary
HashMapIndex()
           
HashMapIndex(LookupIndexIF fallback)
           
HashMapIndex(java.util.Map map)
           
HashMapIndex(java.util.Map map, LookupIndexIF fallback)
           
 
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 net.ontopia.utils.LookupIndexIF
put, remove
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

HashMapIndex

public HashMapIndex()

HashMapIndex

public HashMapIndex(java.util.Map map)

HashMapIndex

public HashMapIndex(LookupIndexIF fallback)

HashMapIndex

public HashMapIndex(java.util.Map map,
                    LookupIndexIF fallback)
Method Detail

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-2010 Ontopia.