2020年6月8日

HashMap

摘要: 数组和链表组合构成 hash code 相等的value存入链表 size/capacity >0.75 时 会扩容,长度是原数组的2倍 Hash的公式 > index = HashCode(Key) & (Length - 1) 扩容后,原来的数组成员会根据公式重新分配index. JAVA8之前 阅读全文

posted @ 2020-06-08 10:12 leonworld2011 阅读(136) 评论(0) 推荐(0) 编辑

导航