org.xwt.util
Class Cache

java.lang.Object
  extended byorg.xwt.util.Hash
      extended byorg.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 org.xwt.util.Hash
get, keys, put, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache

public Cache()
Method Detail

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