Class LRUCache
java.lang.Object
org.apache.batik.ext.awt.image.rendered.LRUCache
- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInterface for nodes in the LRU cache, basicly nodes in a doubly linked list.static interfaceInterface for object participating in the LRU Cache. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(LRUCache.LRUObj obj) voidflush()intgetUsed()protected voidprint()voidremove(LRUCache.LRUObj obj) voidsetSize(int newSz) voidtouch(LRUCache.LRUObj obj)
-
Field Details
-
free
-
used
-
maxSize
private int maxSize
-
-
Constructor Details
-
LRUCache
public LRUCache(int size)
-
-
Method Details
-
getUsed
public int getUsed() -
setSize
public void setSize(int newSz) -
flush
public void flush() -
remove
-
touch
-
add
-
print
protected void print()
-