Skip to content

fix markdown problems #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion markdown/7-LinkedHashSet and LinkedHashMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 总体介绍

如果你已看过前面关于*HashSet*和*HashMap*,以及*TreeSet*和*TreeMap*的讲解,一定能够想到本文将要讲解的*LinkedHashSet*和*LinkedHashMap*其实也是一回事。*LinkedHashSet*和*LinkedHashMap*在Java里也有着相同的实现,前者仅仅是对后者做了一层包装,也就是说***LinkedHashSet*里面有一个*LinkedHashMap*(适配器模式)**。因此本文将重点分析*LinkedHashMap*。
如果你已看过前面关于*HashSet*和*HashMap*,以及*TreeSet*和*TreeMap*的讲解,一定能够想到本文将要讲解的*LinkedHashSet*和*LinkedHashMap*其实也是一回事。*LinkedHashSet*和*LinkedHashMap*在Java里也有着相同的实现,前者仅仅是对后者做了一层包装,也就是说 **LinkedHashSet** 里面有一个 **LinkedHashMap(适配器模式)** 。因此本文将重点分析*LinkedHashMap*。

*LinkedHashMap*实现了*Map*接口,即允许放入`key`为`null`的元素,也允许插入`value`为`null`的元素。从名字上可以看出该容器是*linked list*和*HashMap*的混合体,也就是说它同时满足*HashMap*和*linked list*的某些特性。**可将*LinkedHashMap*看作采用*linked list*增强的*HashMap*。**

Expand Down