public class KStarCache.CacheTable extends java.lang.Object implements java.io.Serializable, RevisionHandler
Constructor and Description |
---|
CacheTable()
Constructs a new hashtable with a default capacity and load factor.
|
CacheTable(int size,
float loadFactor)
Constructs a new hashtable with a default capacity and load factor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this hashtable so that it contains no keys.
|
boolean |
containsKey(double key)
Tests if the specified double is a key in this hashtable.
|
KStarCache.TableEntry |
getEntry(double key)
Returns the table entry to which the specified key is mapped in
this hashtable.
|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
insert(double key,
double value,
double pmiss)
Inserts a new entry in the hashtable using the specified key.
|
boolean |
isEmpty()
Tests if this hashtable maps no keys to values.
|
int |
size()
Returns the number of keys in this hashtable.
|
public CacheTable(int size, float loadFactor)
public CacheTable()
public boolean containsKey(double key)
public void insert(double key, double value, double pmiss)
public KStarCache.TableEntry getEntry(double key)
public int size()
public boolean isEmpty()
public void clear()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler