Skip to content

Commit 2b13032

Browse files
authored
修改JDK1.8之后的底层数据结构的配图
1 parent 2cfca91 commit 2b13032

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Java相关/HashMap.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ static int hash(int h) {
6060

6161
### JDK1.8之后
6262
相比于之前的版本,jdk1.8在解决哈希冲突时有了较大的变化,当链表长度大于阈值(默认为8)时,将链表转化为红黑树,以减少搜索时间。
63-
![JDK1.8之后的内部结构](https://user-gold-cdn.xitu.io/2018/3/20/16240e0e30123cfc?w=552&h=519&f=png&s=15827)
63+
64+
![JDK1.8之后的HashMap底层数据结构](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-8-22/67233764.jpg)
65+
6466
**类的属性:**
6567
```java
6668
public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Cloneable, Serializable {

0 commit comments

Comments
 (0)