|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--edu.vt.marian.search.FullIDTable
Provides hash table functionality for FullIDs. This class is really just a wrapper around the java.util.Hashtable class, with one of the ubiquitous Debug objects embedded in it.
This method implicitly relies upon the hashCode method to be defined in the object that is going to be used as a key object.
FullID,
FullID.hashCode(),
Hashtable,
Debug, Serialized Form| Field Summary | |
static int |
BAD_PARAMS
Return value indicating bad parameters were supplied to method |
protected edu.vt.marian.common.Debug |
debug
The ubiquitous debugging object |
static int |
NULL_STREAM
Return value to indicate passed stream object was null |
static int |
OK
Return value to indicate success |
| Constructor Summary | |
FullIDTable(edu.vt.marian.common.Debug debug)
Create an empty hash table for FullIDs |
|
FullIDTable(int initialCapacity,
edu.vt.marian.common.Debug debug)
Create an empty hash table for FullIDs specifying initial capacity, but with default load factor. |
|
FullIDTable(int initialCapacity,
float loadFactor,
edu.vt.marian.common.Debug debug)
Create an empty hash table for FullIDs specifying initial capacity and load factor. |
|
| Method Summary | |
int |
toStream(java.io.PrintWriter pw)
Dump the FullIDTable to an output stream (file). |
java.lang.String |
toString()
Convert hash table to a printable string representation. |
| Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
rehash,
remove,
size,
values |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected edu.vt.marian.common.Debug debug
public static final int OK
public static final int BAD_PARAMS
public static final int NULL_STREAM
| Constructor Detail |
public FullIDTable(edu.vt.marian.common.Debug debug)
public FullIDTable(int initialCapacity,
float loadFactor,
edu.vt.marian.common.Debug debug)
initialCapacity - initial size of hash tableloadFactor - occupancy threshold before growth neededdebug - debugging object
public FullIDTable(int initialCapacity,
edu.vt.marian.common.Debug debug)
initialCapacity - initial size of hash tabledebug - debugging object| Method Detail |
public java.lang.String toString()
FullID.toString()public int toStream(java.io.PrintWriter pw)
pw - output stream to which hash table should be dumped
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||