net.axyana.qizxopen.util
Class HTable
java.lang.Object
net.axyana.qizxopen.util.HTable
- public class HTable
- extends java.lang.Object
A simple hash table meant for efficiency.
The key (subclass of Key) also bears the value.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTable
public HTable(int capacity)
HTable
public HTable()
getSize
public int getSize()
get
public HTable.Key get(HTable.Key probe)
put
public HTable.Key put(HTable.Key probe)
add
public HTable.Key add(HTable.Key probe)
- No check: allows duplicate keys.
directPut
public void directPut(HTable.Key entry)
getKeys
public HTable.Key[] getKeys(HTable.Key[] keys)
clear
public void clear()