Class Overview
Cache following a "Most Recently Used" (MRU) algorithm for maintaining a
bounded in-memory size; the "Least Recently Used" (LRU) entry is the first
available for removal from the cache.
This implementation uses a bounded MRU Map to limit the in-memory size of
the cache. Thus the size of this cache never grows beyond the stated size.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
DEFAULT_STRONG_REF_COUNT
Constant Value:
128
(0x00000080)
Public Constructors
public
SimpleMRUCache
(int strongReferenceCount)
Public Methods
public
synchronized
void
clear
()
public
synchronized
int
size
()