|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.lazy.kstar.KStarCache.CacheTable
public class KStarCache.CacheTable
A custom hashtable class to support the caching system.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KStarCache.CacheTable(int size, float loadFactor)
public KStarCache.CacheTable()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |