HashSet源码学习

HashSet

1、总体架构

2、方法源码

可以看到其实内部就是一个hashMap

其他方法

add()方法

 

 

 

posted @ 2022-10-11 09:43  大大怪下士  阅读(15)  评论(0)    收藏  举报