jdbm.htree
Class HTreeMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by jdbm.helper.AbstractPrimaryMap<K,V>
          extended by jdbm.htree.HTreeMap<K,V>
All Implemented Interfaces:
java.util.Map<K,V>, JdbmBase<K,V>, PrimaryHashMap<K,V>, PrimaryMap<K,V>
Direct Known Subclasses:
HTreeSecondaryMap

public class HTreeMap<K,V>
extends AbstractPrimaryMap<K,V>
implements PrimaryHashMap<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
HTreeMap(HTree<K,V> tree, boolean readonly)
           
 
Method Summary
 void addRecordListener(RecordListener<K,V> listener)
          add RecordListener which is notified about record changes
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 java.util.Set<java.util.Map.Entry<K,V>> entrySet()
           
 V get(java.lang.Object key)
           
 RecordManager getRecordManager()
           
 HTree<K,V> getTree()
           
 V put(K key, V value)
           
 V remove(java.lang.Object key)
           
 void removeRecordListener(RecordListener<K,V> listener)
          remove RecordListener which is notified about record changes
 
Methods inherited from class jdbm.helper.AbstractPrimaryMap
find, inverseHashView, secondaryHashMap, secondaryHashMap, secondaryHashMapManyToOne, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne
 
Methods inherited from class java.util.AbstractMap
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jdbm.PrimaryMap
inverseHashView, secondaryHashMap, secondaryHashMap, secondaryHashMapManyToOne, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne
 
Methods inherited from interface jdbm.helper.JdbmBase
find
 
Methods inherited from interface java.util.Map
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Constructor Detail

HTreeMap

public HTreeMap(HTree<K,V> tree,
                boolean readonly)
Method Detail

entrySet

public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface java.util.Map<K,V>
Specified by:
entrySet in class java.util.AbstractMap<K,V>

get

public V get(java.lang.Object key)
Specified by:
get in interface java.util.Map<K,V>
Overrides:
get in class java.util.AbstractMap<K,V>

remove

public V remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<K,V>
Overrides:
remove in class java.util.AbstractMap<K,V>

put

public V put(K key,
             V value)
Specified by:
put in interface java.util.Map<K,V>
Overrides:
put in class java.util.AbstractMap<K,V>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<K,V>
Overrides:
containsKey in class java.util.AbstractMap<K,V>

getTree

public HTree<K,V> getTree()

addRecordListener

public void addRecordListener(RecordListener<K,V> listener)
Description copied from interface: JdbmBase
add RecordListener which is notified about record changes

Specified by:
addRecordListener in interface JdbmBase<K,V>

getRecordManager

public RecordManager getRecordManager()
Specified by:
getRecordManager in interface JdbmBase<K,V>
Returns:
underlying record manager

removeRecordListener

public void removeRecordListener(RecordListener<K,V> listener)
Description copied from interface: JdbmBase
remove RecordListener which is notified about record changes

Specified by:
removeRecordListener in interface JdbmBase<K,V>

clear

public void clear()
Specified by:
clear in interface java.util.Map<K,V>
Overrides:
clear in class java.util.AbstractMap<K,V>


Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net