馬哥Linux云計算SRE-架構(gòu)師班 網(wǎng)絡班
? ? ? ? ? ? ? boolean evict) {
? ? ? ?Node<K, V>[] tab;
? ? ? ?Node<K, V> p;
? ? ? ?int n, i;
? ? ? ?// 初始化
? ? ? ?if ((tab = table) == null || (n = tab.length) == 0)
? ? ? ? ? ?n = (tab = resize()).length;
? ? ? ?// 如果是桶內(nèi)的第一個節(jié)點
? ? ? ?if ((p = tab[i = (n - 1) & hash]) == null)
? ? ? ? ? ?tab[i] = newNode(hash, key, value, null);
? ? ? ?else {
? ? ? ? ? ?Node<K, V> e;
? ? ? ? ? ?K k;
標簽: