mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Merge pull request #2494 from Samsara1994/patch-2
Update linkedhashmap-source-code.md
This commit is contained in:
commit
4b34db7018
@ -258,7 +258,7 @@ public V get(Object key) {
|
||||
```java
|
||||
void afterNodeAccess(Node < K, V > e) { // move node to last
|
||||
LinkedHashMap.Entry < K, V > last;
|
||||
//如果accessOrder 且当前节点不未链表尾节点
|
||||
//如果accessOrder 且当前节点不为链表尾节点
|
||||
if (accessOrder && (last = tail) != e) {
|
||||
|
||||
//获取当前节点、以及前驱节点和后继节点
|
||||
|
Loading…
x
Reference in New Issue
Block a user