hashMap put方法 第二行代码

if (table == EMPTY_TABLE) {
    inflateTable(threshold);
}

table

transient Entry<K,V>[] table = (Entry<K,V>[]) EMPTY_TABLE;






EMPTY_TABLE
static final Entry<?,?>[] EMPTY_TABLE = {};

猜你喜欢

转载自www.cnblogs.com/hellowzd/p/9717839.html