@@ -12,22 +12,34 @@ tags:
12
12
13
13
<!-- TOC -->
14
14
15
- - [ 容器框架] ( #容器框架 )
16
- - [ Collection] ( #collection )
17
- - [ List] ( #list )
18
- - [ ArrayList] ( #arraylist )
19
- - [ LinkedList] ( #linkedlist )
20
- - [ Queue] ( #queue )
21
- - [ 同步容器] ( #同步容器 )
22
- - [ 迭代器和比较器] ( #迭代器和比较器 )
23
- - [ 资料] ( #资料 )
15
+ - [ 容器概述] ( #容器概述 )
16
+ - [ 容器框架] ( #容器框架 )
17
+ - [ Collection] ( #collection )
18
+ - [ List] ( #list )
19
+ - [ ArrayList] ( #arraylist )
20
+ - [ 要点] ( #要点 )
21
+ - [ 源码] ( #源码 )
22
+ - [ 1. 概览] ( #1-概览 )
23
+ - [ 2. 序列化] ( #2-序列化 )
24
+ - [ 3. 扩容] ( #3-扩容 )
25
+ - [ 4. 删除元素] ( #4-删除元素 )
26
+ - [ 5. Fail-Fast] ( #5-fail-fast )
27
+ - [ LinkedList] ( #linkedlist )
28
+ - [ 要点] ( #要点-1 )
29
+ - [ 源码] ( #源码-1 )
30
+ - [ 1. 概览] ( #1-概览-1 )
31
+ - [ 2. ArrayList 与 LinkedList] ( #2-arraylist-与-linkedlist )
32
+ - [ Queue] ( #queue )
33
+ - [ 同步容器] ( #同步容器 )
34
+ - [ 迭代器和比较器] ( #迭代器和比较器 )
35
+ - [ 资料] ( #资料 )
24
36
25
37
<!-- /TOC -->
26
38
27
39
## 容器框架
28
40
29
41
<div align =" center " >
30
- <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/collection /collection-structure.png " width =" 640 " />
42
+ <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/container /collection-structure.png " width =" 640 " />
31
43
</div >
32
44
33
45
Java 容器框架主要分为 Collection 和 Map 两种。其中,Collection又分为 List、Set 以及 Queue。
@@ -50,13 +62,13 @@ Collection 接口是 collection 体系结构的根接口。Collection 实体代
50
62
Collection 接口通常用于传递集合并在需要最大普遍性的情况下处理它们。
51
63
52
64
<div align =" center " >
53
- <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/collection /collection-api.png " width =" 400 " />
65
+ <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/container /collection-api.png " width =" 400 " />
54
66
</div >
55
67
56
68
## List
57
69
58
70
<div align =" center " >
59
- <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/collection /list-api.png " width =" 400 " />
71
+ <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/container /list-api.png " width =" 400 " />
60
72
</div >
61
73
62
74
### ArrayList
@@ -217,7 +229,7 @@ transient Node<E> last;
217
229
## Queue
218
230
219
231
<div align =" center " >
220
- <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/collection /queue-api.png " />
232
+ <img src =" https://raw.githubusercontent.com/dunwu/javase-notes/master/images/container /queue-api.png " />
221
233
</div >
222
234
223
235
* LinkedList:可以用它来支持双向队列;
0 commit comments