mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
修改JDK1.8之后的底层数据结构的配图
This commit is contained in:
parent
2cfca91e09
commit
2b130321b3
@ -60,7 +60,9 @@ static int hash(int h) {
|
||||
|
||||
### JDK1.8之后
|
||||
相比于之前的版本,jdk1.8在解决哈希冲突时有了较大的变化,当链表长度大于阈值(默认为8)时,将链表转化为红黑树,以减少搜索时间。
|
||||

|
||||
|
||||

|
||||
|
||||
**类的属性:**
|
||||
```java
|
||||
public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Cloneable, Serializable {
|
||||
|
Loading…
x
Reference in New Issue
Block a user