org.xwt.util
Class Cache
java.lang.Object
org.xwt.util.Hash
org.xwt.util.Cache
- public class Cache
- extends Hash
A Hash table with a fixed size; drops extraneous elements. Uses
LRU strategy.
Constructor Summary |
Cache()
|
Method Summary |
void |
clear()
empties the table |
java.lang.Object |
get(java.lang.Object k1,
java.lang.Object k2)
|
void |
put(java.lang.Object k1,
java.lang.Object k2,
java.lang.Object v)
|
void |
remove(java.lang.Object k1,
java.lang.Object k2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cache
public Cache()
clear
public void clear()
- Description copied from class:
Hash
- empties the table
- Overrides:
clear
in class Hash
remove
public void remove(java.lang.Object k1,
java.lang.Object k2)
- Overrides:
remove
in class Hash
get
public java.lang.Object get(java.lang.Object k1,
java.lang.Object k2)
- Overrides:
get
in class Hash
put
public void put(java.lang.Object k1,
java.lang.Object k2,
java.lang.Object v)
- Overrides:
put
in class Hash