Class LRUCache
java.lang.Object
org.apache.batik.ext.awt.image.rendered.LRUCache
- Version:
- $Id: LRUCache.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
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. -
Field Summary
Fields -
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)
-
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()
-