File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ categories:
1111> 文章已经收录在 [ Github.com/niumoo/JavaNotes] ( https://github.com/niumoo/JavaNotes ) ,更有 Java 程序员所需要掌握的核心知识,欢迎Star和指教。
1212> 欢迎关注我的[ 公众号] ( https://github.com/niumoo/JavaNotes#%E5%85%AC%E4%BC%97%E5%8F%B7 ) ,文章每周更新。
1313
14- HashMap 作为最常用的集合类之一,有必要深入浅出的了解一下。这篇文章会深入到 HashMap 源码,刨析它的存储结构以及工作机制 。
14+ HashMap 作为最常用的集合类之一,有必要深入浅出的了解一下。这篇文章会深入到 HashMap 源码,剖析它的存储结构以及工作机制 。
1515
1616### 1. HashMap 的存储结构
1717
@@ -222,7 +222,7 @@ hash 结果 = 0001 0100 1100 0010 0111 0101 1110 0100 ---
222222# 得到位置 = 0000 0000 0000 0000 0000 0000 0000 0100 得到位置是 4
223223```
224224
225- 如果又新增一个数据,得到 hash 值是 ` 0100 0000 1110 0010 1010 0010 0001 0000 ` ,容量还是16,计算他的位置应该是什么呢 ?
225+ 如果又新增一个数据,得到 hash 值是 ` 0100 0000 1110 0010 1010 0010 0001 0000 ` ,容量还是16,计算它的位置应该是什么呢 ?
226226
227227``` java
228 228hash = 0100 0000 1110 0010 1010 0010 0001 0000 -- -
You can’t perform that action at this time.
0 commit comments