net.ontopia.utils
Class HashMapIndex<K,E>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,E>
net.ontopia.utils.HashMapIndex<K,E>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,E>, LookupIndexIF<K,E>
public class HashMapIndex<K,E>
- extends HashMap<K,E>
- implements LookupIndexIF<K,E>
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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
fallback
protected LookupIndexIF<K,E> fallback
HashMapIndex
public HashMapIndex()
HashMapIndex
public HashMapIndex(Map<K,E> map)
HashMapIndex
public HashMapIndex(LookupIndexIF<K,E> fallback)
HashMapIndex
public HashMapIndex(Map<K,E> map,
LookupIndexIF<K,E> fallback)
get
public E get(Object key)
- Specified by:
get
in interface Map<K,E>
- Specified by:
get
in interface LookupIndexIF<K,E>
- Overrides:
get
in class HashMap<K,E>
Copyright © 2000-2012 Ontopia.