| 程序包 | 说明 |
|---|---|
| cn.weforward.common.util |
| 限定符和类型 | 类和说明 |
|---|---|
static class |
LruCache.CacheNode<K,V> |
| 限定符和类型 | 字段和说明 |
|---|---|
protected LruHashMap.Node<K,V> |
LruHashMap.Node.lruAfter |
protected LruHashMap.Node<K,V> |
LruHashMap.Node.lruBefore |
protected LruHashMap.Node<K,V> |
LruHashMap.m_LruHead
LRU链表头
|
protected LruHashMap.Node<K,V> |
LruHashMap.m_LruTail
LRU链表尾
|
protected LruHashMap.Node<K,V>[] |
LruHashMap.m_Table
hash表
|
protected LruHashMap.Node<K,V> |
LruHashMap.Node.next |
| 限定符和类型 | 方法和说明 |
|---|---|
protected LruHashMap.Node<K,V> |
LruHashMap.getNode(int hash,
Object key) |
protected LruHashMap.Node<K,V> |
LruHashMap.newNode(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
protected LruHashMap.Node<K,V> |
LruCache.newNode(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
protected LruHashMap.Node<K,V> |
LruHashMap.openNode(int hash,
K key) |
protected LruHashMap.Node<K,V>[] |
LruHashMap.resize() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
LruHashMap.afterNodeAccess(LruHashMap.Node<K,V> p)
节点被访问
|
protected void |
LruCache.afterNodeAccess(LruHashMap.Node<K,V> p) |
protected void |
LruHashMap.afterNodeInsertion(LruHashMap.Node<K,V> p)
新插入节点
|
protected void |
LruHashMap.afterNodeRemoval(LruHashMap.Node<K,V> p)
节点被删除
|
protected void |
LruCache.afterNodeRemoval(LruHashMap.Node<K,V> p) |
protected void |
LruHashMap.afterNodeUpdate(LruHashMap.Node<K,V> p)
节点被更新
|
protected void |
LruCache.afterNodeUpdate(LruHashMap.Node<K,V> p) |
protected LruHashMap.Node<K,V> |
LruHashMap.newNode(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
protected LruHashMap.Node<K,V> |
LruCache.newNode(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
protected void |
LruHashMap.putLru(LruHashMap.Node<K,V> node)
更新到LRU链表首
|
protected boolean |
LruHashMap.Node.putLru(LruHashMap.Node<K,V> chain) |
protected boolean |
LruCache.CacheNode.putLru(LruHashMap.Node<K,V> chain) |
protected void |
LruHashMap.rebuild(LruHashMap.Node<K,V>[] oldTab,
int oldCap,
LruHashMap.Node<K,V>[] newTab,
int newCap) |
protected void |
LruHashMap.rebuild(LruHashMap.Node<K,V>[] oldTab,
int oldCap,
LruHashMap.Node<K,V>[] newTab,
int newCap) |
protected void |
LruHashMap.removeLru(LruHashMap.Node<K,V> node)
由LRU表移除
|
| 构造器和说明 |
|---|
CacheNode(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
Node(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
Copyright © 2022. All rights reserved.