Class LRUCache
java.lang.Object
org.apache.batik.ext.awt.image.rendered.LRUCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Interface for nodes in the LRU cache, basicly nodes in a doubly linked list.static interface
Interface for object participating in the LRU Cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
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()
-