深入剖析 HashSet 和 HashMap 实现

📝

内容提要

HashSet是一个包含非重复元素的集合,如何实现的,要从底层实现代码看起。 背景 首先非重复元素如何定义,看Set的描述: More formally, sets contain no pair of elements e1 and e2 such that e1.equals(e2), and at most one null...

🏷️

标签

➡️

继续阅读