HashMap底层源码解析
文章平均质量分 53
坚持一定很Cool
这个作者很懒,什么都没留下…
展开
-
HashMap1.8底层源码解析
1.常用属性介绍HashMap类属性// 默认容量为16static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;// 最大容量为2^30static final int MAXIMUM_CAPACITY = 1 << 30;// 默认加载因子0.75static final float DEFAULT_LOAD_FACTOR = 0.75f;// 空数组常量static final Entry<?,?>[]原创 2022-04-01 16:44:51 · 169 阅读 · 0 评论 -
HasMap1.7底层源码解析
HasMap1.7底层源码解析1.常用属性介绍HashMap类属性// 默认容量为16static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;// 最大容量为2^30static final int MAXIMUM_CAPACITY = 1 << 30;// 默认加载因子0.75static final float DEFAULT_LOAD_FACTOR = 0.75f;// 空数组常量static final Ent原创 2022-03-28 15:05:38 · 67 阅读 · 0 评论