K - 键的类型(通常是字串)V - 值的类型protected static class LruHashMap.Node<K,V> extends Object implements KvPair<K,V>
KvPair.EntryKvPair<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
hash |
protected K |
key |
protected LruHashMap.Node<K,V> |
lruAfter |
protected LruHashMap.Node<K,V> |
lruBefore |
protected LruHashMap.Node<K,V> |
next |
protected V |
value |
| 限定符 | 构造器和说明 |
|---|---|
protected |
LruHashMap.Node(int hash,
K key,
V value,
LruHashMap.Node<K,V> next) |
protected final int hash
protected final K key
protected V value
protected LruHashMap.Node<K,V> next
protected LruHashMap.Node<K,V> lruBefore
protected LruHashMap.Node<K,V> lruAfter
protected LruHashMap.Node(int hash,
K key,
V value,
LruHashMap.Node<K,V> next)
protected void removeLru()
protected boolean putLru(LruHashMap.Node<K,V> chain)
Copyright © 2020. All rights reserved.