Class LRUCache
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.LRUCache
-
public class LRUCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LRUCache.LRUNode
Interface for nodes in the LRU cache, basicly nodes in a doubly linked list.static interface
LRUCache.LRUObj
Interface for object participating in the LRU Cache.
-
Constructor Summary
Constructors Constructor Description LRUCache(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LRUCache.LRUObj obj)
void
flush()
int
getUsed()
protected void
print()
void
remove(LRUCache.LRUObj obj)
void
setSize(int newSz)
void
touch(LRUCache.LRUObj obj)
-
-
-
Method Detail
-
getUsed
public int getUsed()
-
setSize
public void setSize(int newSz)
-
flush
public void flush()
-
remove
public void remove(LRUCache.LRUObj obj)
-
touch
public void touch(LRUCache.LRUObj obj)
-
add
public void add(LRUCache.LRUObj obj)
-
print
protected void print()
-
-