当前位置:
首页 >
hashMap put方法 第二行代码
发布时间:2024/4/17
38
豆豆
生活随笔
收集整理的这篇文章主要介绍了
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索引
- 下一篇: 特殊方法,类之间的关系,分页