hashMap put方法 第二行代码
生活随笔
收集整理的這篇文章主要介紹了
hashMap put方法 第二行代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
if (table == EMPTY_TABLE) {inflateTable(threshold);
}
EMPTY_TABLE static final Entry<?,?>[] EMPTY_TABLE = {};
?
table
transient Entry<K,V>[] table = (Entry<K,V>[]) EMPTY_TABLE;EMPTY_TABLE static final Entry<?,?>[] EMPTY_TABLE = {};
?
還是第二行代碼
?有兩個小問題:?
1、static final?transient 這幾個關鍵字的意思
2、transient Entry<K,V>[] table = (Entry<K,V>[]) EMPTY_TABLE; 這句話的意思
?
總結
以上是生活随笔為你收集整理的hashMap put方法 第二行代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQLServer之创建辅助XML索引
- 下一篇: 特殊方法,类之间的关系,分页