Skip to content

Commit

Permalink
添加第十二章 集合的框架图
Browse files Browse the repository at this point in the history
  • Loading branch information
1326670425 committed Aug 5, 2019
1 parent eba25ff commit 8f7a8b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/book/12-Collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ Java 提供了许多保存对象的方法:

8. 不要在新代码中使用遗留类 **Vector** ,**Hashtable** 和 **Stack** 。

浏览一下Java集合的简图(不包含抽象类或遗留组件)会很有帮助。这里仅包括在一般情况下会碰到的接口和类。
浏览一下Java集合的简图(不包含抽象类或遗留组件)会很有帮助。这里仅包括在一般情况下会碰到的接口和类。(译者注:下图为原著PDF中的截图,可能由于未知原因存在问题。这里可参考译者绘制版[^8])

![simple collection taxonomy](../images/simple-collection-taxonomy.png)

Expand Down Expand Up @@ -1812,6 +1812,10 @@ Serializable]

[^7]: 这在 Java 5 之前是不可用的,因为该方法被认为与操作系统的耦合度过紧,因此违反“一次编写,处处运行”的原则。现在却提供它,这一事实表明, Java 的设计者们更加务实了。

[^8]: 下面是译者绘制的 Java 集合框架简图,黄色为接口,绿色为抽象类,蓝色为具体类。虚线箭头表示实现关系,实线箭头表示继承关系。
![collection](../images/collection.png)
![map](../images/map.png)

<!-- 分页 -->

<div style="page-break-after: always;"></div>
Binary file added docs/images/collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f7a8b9

Please sign in to comment.