- 博客(1)
- 收藏
- 关注
原创 源码解析HashMap和LinkedHashMap底层原理(JDK1.8)
首先认识一下HaspMap到底长啥样?key-value组成一个Entry对象放到数组中 0、HashMap中的字段 //默认加载因子 static final float DEFAULT_LOAD_FACTOR = 0.75f; //最大容量 static final int MAXIMUM_CAPACITY = 1 << 30; //当前 HashMap 所能容纳键值对数量的最大值,超过这个值,则需扩容 int threshold; //node数组 transient Node<K
2020-11-06 09:35:18 316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人