Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5a075ba

Browse files
committed
添加上下文链接
1 parent 4f4561f commit 5a075ba

File tree

5 files changed

+19
-65
lines changed

5 files changed

+19
-65
lines changed

‎ch17/00_The_Collections_Class.md

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,11 @@
1-
2-
1+
《《《 [返回首页](../README.md) <br/>
2+
《《《 [上一节](../ch16/06_Comparing_Map_Implementations.md)
33

44
## 集合类
55

66
`java.util.Collections` 类完全由静态方法组成,这些静态方法对集合进行操作或返回集合。 有三个主要类别:泛型算法,返回空或预填充集合的方法以及创建包装器的方法。 我们依次讨论这三个类别,然后是其他一些不适合整洁分类的方法。
77

88
集合的所有方法都是公共和静态的,所以为了可读性,我们将从各个声明中省略这些修饰符。
99

10-
11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
58-
10+
《《《 [下一节](01_Generic_Algorithms.md) <br/>
11+
《《《 [返回首页](../README.md)

‎ch17/01_Generic_Algorithms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
1+
《《《 [返回首页](../README.md) <br/>
2+
《《《 [上一节](00_The_Collections_Class.md)
33

44
## 通用算法
55

@@ -64,5 +64,5 @@ void swap(List<?> list, int i, int j) // 交换指定位置的元素
6464

6565
`indexOfSubList``lastIndexOfSubList` 方法的操作不需要排序列表。他们的签名允许源列表和目标列表包含任何类型的元素(请记住,这两个通配符可能代表两种不同的类型)。这些签名背后的设计决策与 `Collection` 方法 `containsAll`,`retainAll`和removeAll背后的设计决策相同(参见第 `2.6` 节)。
6666

67-
68-
67+
《《《 [下一节](02_Collection_Factories.md) <br/>
68+
《《《 [返回首页](../README.md)

‎ch17/02_Collection_Factories.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
1+
《《《 [返回首页](../README.md) <br/>
2+
《《《 [上一节](01_Generic_Algorithms.md)
33

44
## 收集工厂
55

@@ -31,4 +31,5 @@
3131

3232
由于 `nCopies` 生成的列表是不可变的,它只需要包含一个物理元素来提供所需长度的列表视图。这样的列表通常被用作构建进一步集合的基础 - 例如,作为构造函数或 `addAll` 方法的参数。
3333

34-
34+
《《《 [下一节](03_Wrappers.md) <br/>
35+
《《《 [返回首页](../README.md)

‎ch17/03_Wrappers.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
1+
《《《 [返回首页](../README.md) <br/>
2+
《《《 [上一节](02_Collection_Factories.md)
33

44
## 包装
55

@@ -54,3 +54,5 @@
5454
static <K, V> SortedMap checkedSortedMap(SortedMap<K, V> c, Class<K> keyType,Class<V> valueType)
5555
```
5656

57+
《《《 [下一节](04_Other_Methods.md) <br/>
58+
《《《 [返回首页](../README.md)

‎ch17/04_Other_Methods.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
1+
《《《 [返回首页](../README.md) <br/>
2+
《《《 [上一节](03_Wrappers.md)
33

44
## 其他方法
55

@@ -92,6 +92,4 @@
9292
泛型和改进的集合框架可能是 `Java` 自成立以来最重大的变化。我们对这些变化感到非常兴奋,并希望我们已将这些兴奋传达给了您。我们希望您会看到泛型和集合很好地融合在一起为您的 `Java` 编程技巧提供强大的补充。
9393

9494

95-
96-
97-
95+
《《《 [返回首页](../README.md)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /