com.equitysoft.hashstore
Class SyncDuplicateDiskHashtable
java.lang.Object
|
+--com.equitysoft.hashstore.DiskHashtable
|
+--com.equitysoft.hashstore.DuplicateDiskHashtable
|
+--com.equitysoft.hashstore.SyncDuplicateDiskHashtable
- public class SyncDuplicateDiskHashtable
- extends DuplicateDiskHashtable
This a convenience class that is an extension of DuplicateDiskHashTable providing all methods as synchronized
- Author:
- Colin Mummery - equitysoft@iname.com - http://www.kagi.com/equitysoft
Method Summary |
java.lang.Object |
get(java.lang.Object key)
Gets the value associated with first occurence of the key or null if the key is not found. |
java.lang.Object |
getNext()
Gets the next value ssociated with the current key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts the key and value pair into the table. |
java.lang.Object |
remove(java.lang.Object key)
Removes all entries with the specified key value. |
java.lang.Object |
removeCurrent()
Removes the current entry. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncDuplicateDiskHashtable
public SyncDuplicateDiskHashtable(java.io.File root)
get
public java.lang.Object get(java.lang.Object key)
throws java.io.IOException
- Gets the value associated with first occurence of the key or null if the key is not found.
- Overrides:
get
in class DuplicateDiskHashtable
- Following copied from class:
com.equitysoft.hashstore.DuplicateDiskHashtable
- Returns:
null
if the key isn't found otherwise the associated object- See Also:
DuplicateDiskHashtable.getNext()
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
throws java.io.IOException
- Puts the key and value pair into the table.
- Overrides:
put
in class DuplicateDiskHashtable
- Following copied from class:
com.equitysoft.hashstore.DuplicateDiskHashtable
- Returns:
- Always returns
null
. The returned value is necessary for compatability with the super-class. - See Also:
DuplicateDiskHashtable.getCurrentKey()
getNext
public java.lang.Object getNext()
throws java.io.IOException
- Gets the next value ssociated with the current key.
- Overrides:
getNext
in class DuplicateDiskHashtable
- Following copied from class:
com.equitysoft.hashstore.DuplicateDiskHashtable
- Returns:
null
if the key isn't found otherwise the value associated with the next key entry- See Also:
DuplicateDiskHashtable.get(Object)
remove
public java.lang.Object remove(java.lang.Object key)
throws java.io.IOException
- Removes all entries with the specified key value.
- Overrides:
remove
in class DuplicateDiskHashtable
- Following copied from class:
com.equitysoft.hashstore.DuplicateDiskHashtable
- Returns:
- Always returns
null
. Returning something is necessary for compatability with the super-class. - See Also:
DuplicateDiskHashtable.removeCurrent()
removeCurrent
public java.lang.Object removeCurrent()
throws java.io.IOException
- Removes the current entry.
- Overrides:
removeCurrent
in class DuplicateDiskHashtable
- Following copied from class:
com.equitysoft.hashstore.DuplicateDiskHashtable
- Returns:
- The value associated with the removed entry
- See Also:
DuplicateDiskHashtable.get(Object)
,
DuplicateDiskHashtable.getNext()
,
DuplicateDiskHashtable.remove(Object)