小馬哥教育-Flutter從入門到實戰(zhàn)
2022-10-19 20:47 作者:娜娜絡(luò)絡(luò) | 我要投稿
? ? ? ?// 沒有相同的則在鏈表中追加一個
? ? ? ?addEntry(hash, key, value, i);
? ? ? ?return null;
? ?}
? ?/**
? ? * Inflates the table.
? ? */
? ?private void inflateTable(int toSize) {
? ? ? ?// Find a power of 2 >= toSize
? ? ? ?int capacity = roundUpToPowerOf2(toSize);
? ? ? ?threshold = (int) Math.min(capacity * loadFactor, MAXIMUM_CAPACITY + 1);
? ? ? ?// 數(shù)組
標(biāo)簽: