| Modifier | Constructor and Description |
|---|---|
protected |
LRUCache.LRUList()
Creates a new double queued list.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
capacityChanged(int oldCapacity)
Callback that signals that the capacity of the cache is changed.
|
protected void |
clear()
Clear
|
protected void |
demote()
Demotes from the cache the least used entry.
|
protected void |
entryAdded(LRUCache.LRUCacheEntry<K,V> entry)
Callback that signals that the given entry has been added to the cache.
|
protected void |
entryPromotion(LRUCache.LRUCacheEntry<K,V> entry)
Callback that signals that the given entry is just about to be added.
|
protected void |
entryRemoved(LRUCache.LRUCacheEntry<K,V> entry)
Callback that signals that the given entry has been removed from the cache.
|
protected void |
promote(LRUCache.LRUCacheEntry<K,V> entry)
Promotes the cache entry
entry to the last used position
of the list. |
protected void |
remove(LRUCache.LRUCacheEntry<K,V> entry)
Removes from the cache list the specified entry.
|
String |
toString() |
protected void promote(LRUCache.LRUCacheEntry<K,V> entry)
entry to the last used position
of the list. entry - the object to be promoted, cannot be nullIllegalStateException - if this method is called with a full cachedemote()protected void demote()
protected void remove(LRUCache.LRUCacheEntry<K,V> entry)
entry - protected void entryPromotion(LRUCache.LRUCacheEntry<K,V> entry)
entry - protected void entryAdded(LRUCache.LRUCacheEntry<K,V> entry)
entry - protected void entryRemoved(LRUCache.LRUCacheEntry<K,V> entry)
entry - protected void capacityChanged(int oldCapacity)
oldCapacity - the capacity before the change happenedprotected void clear()
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)