2019.4.19
private void rehash(){
Set
<Entry
<K, V>> set
= entrySet();
capacity
<<= 1;
table
= new Entry[capacity
];
size
= 0;
for(Entry
<K, V> entry
: set
){
put(entry
.getKey(), entry
.getValue());
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-307.html