关于前端:hashmap

11次阅读

共计 221 个字符,预计需要花费 1 分钟才能阅读完成。

if ((e = p.next) == null) {

p.next = newNode(hash, key, value, null);
if (binCount >= TREEIFY_THRESHOLD - 1) // -1 for 1st
    treeifyBin(tab, hash);
break;

}
(e = p.next) == null 为 true
p.next = newNode(hash, key, value, null);
e==null
so, 笼罩不会减少 size, 链表追加会减少 size 导致扩容

正文完
 0