Skip to content

Commit 97fa620

Browse files
committed
调整目录
1 parent b926ab3 commit 97fa620

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎notes/JavaArchitecture/02 Java 集合框架.md‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
- [3. Vector 替代方案](#3-vector-替代方案)
2323
- [LinkedList](#linkedlist)
2424
- [1. 概览](#1-概览-1)
25-
- [2. 新增方法](#2-新增方法)
26-
- [3. 查询方法](#3-查询方法)
25+
- [2. add()](#2-add)
26+
- [3. get()](#3-get)
2727
- [4. 总结](#4-总结)
2828
- [5. ArrayList 与 LinkedList](#5-arraylist-与-linkedlist)
2929
- [HashMap](#hashmap)
@@ -43,7 +43,7 @@
4343
- [HashSet](#hashset)
4444
- [1. 成员变量](#1-成员变量)
4545
- [2. 构造函数](#2-构造函数)
46-
- [3. add](#3-add)
46+
- [3. add()](#3-add)
4747
- [4. 总结](#4-总结-1)
4848
- [LinkedHashSet and LinkedHashMap](#linkedhashset-and-linkedhashmap)
4949
- [1. 概览](#1-概览-2)
@@ -400,7 +400,7 @@ transient Node<E> first;
400400
transient Node<E> last;
401401
```
402402

403-
### 2. 新增方法
403+
### 2. add()
404404

405405
```java
406406
public boolean add(E e) {
@@ -426,7 +426,7 @@ void linkLast(E e) {
426426

427427
可见每次插入都是移动指针,和 ArrayList 的拷贝数组来说效率要高上不少。
428428

429-
### 3. 查询方法
429+
### 3. get()
430430

431431
```java
432432
public E get(int index) {
@@ -464,8 +464,6 @@ Node<E> node(int index) {
464464

465465

466466

467-
468-
469467
### 5. ArrayList 与 LinkedList
470468

471469
- ArrayList 基于动态数组实现,LinkedList 基于双向链表实现;
@@ -1077,7 +1075,7 @@ public class HashSet<E>
10771075

10781076

10791077

1080-
### 3. add
1078+
### 3. add()
10811079

10821080
```java
10831081
public boolean add(E e) {

0 commit comments

Comments
 (0)