public class KStarCache.CacheTable extends Object implements Serializable, RevisionHandler
Constructor and Description |
---|
KStarCache.CacheTable()
Constructs a new hashtable with a default capacity and load factor.
|
KStarCache.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.
|
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 KStarCache.CacheTable(int size, float loadFactor)
public KStarCache.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 String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.