![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
集合
文章平均质量分 88
TaotaoPlus
这个作者很懒,什么都没留下…
展开
-
【java集合】HashMap源码分析
继承体系 重要的成员变量 /** * 默认数组初始值大小 * 0b 0001 左移四位 0b 1000 => 0d 16 */ static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 /** * 数组最大长度 */ static final int MAXIMUM_CAPACITY = 1 << 30; /**原创 2021-12-23 00:13:01 · 1011 阅读 · 0 评论 -
【java集合】ConcurrentHashMap源码分析
重要常量 /* ---------------- Constants -------------- */ /** * table最大容量是2的30次方 */ private static final int MAXIMUM_CAPACITY = 1 << 30; /** * table默认初始化容量16 扩容总是2的n次方。 */ private static final int DEFAULT_CAPACITY =原创 2021-12-20 00:27:05 · 147 阅读 · 0 评论