Qizx/open API

net.axyana.qizxopen.util
Class HTable

java.lang.Object
  extended bynet.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.


Nested Class Summary
static class HTable.Key
           
 
Constructor Summary
HTable()
           
HTable(int capacity)
           
 
Method Summary
 HTable.Key add(HTable.Key probe)
          No check: allows duplicate keys.
 void clear()
           
 void directPut(HTable.Key entry)
           
 HTable.Key get(HTable.Key probe)
           
 HTable.Key[] getKeys(HTable.Key[] keys)
           
 int getSize()
           
 HTable.Key put(HTable.Key probe)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTable

public HTable(int capacity)

HTable

public HTable()
Method Detail

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()

© 2005 Axyana Software