一、resize()方法和transfer()方法
void resize(int newCapacity) {
Entry[] oldTable = table;
int oldCapacity = oldTable.length;
if (oldCapacity == MAXIMUM_CAPACITY) {
threshold = Integer.MAX_VALUE;
return;
}
Entry[] newTable = new Entry[newCapacity];
//将旧数组数据移动到新数组
transfer(newTable, initHashSeedAsNeeded(newCapacity));
table = newTable;
threshold =