File tree Expand file tree Collapse file tree 3 files changed +13
-42
lines changed Expand file tree Collapse file tree 3 files changed +13
-42
lines changed Original file line number Diff line number Diff line change 1-
2-
1+ 《《《 [ 返回首页 ] ( ../README.md ) < br />
2+ 《《《 [ 上一节 ] ( ../ch12/03_Collection_Constructors.md )
33
44## Sets
55
1313
1414这是因为处理重复元素的方式。 在星期一任务和电话任务中的任务麦克电话,只有一次出现在 `phoneAndMondayTasks 中 - 你绝对不希望两次完成所有这些任务!
1515
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
16+ 《《《 [ 下一节] ( 01_Implementing_Set.md ) <br />
17+ 《《《 [ 返回首页] ( ../README.md )
Original file line number Diff line number Diff line change 1-
2-
1+ 《《《 [ 返回首页 ] ( ../README.md ) < br />
2+ 《《《 [ 上一节 ] ( 00_Sets.md )
33
44## 实现Set
55
138138在使用中,` EnumSet ` 服从 ` Set ` 的约定,并添加了它的迭代器将以自然顺序(声明 ` enum ` 常量的顺序)返回它们的元素的规范。 它不是线程安全的,但与不同步的通用集合不同,它的迭代器不是快速失败的。 它们可能是快照或弱一致的;保守,合约只能保证它们会弱一致(见第 ` 11.5 ` 节)。
139139
140140![ ] ( 13_3.png )
141- 图 ` 13-4 ` 。` SortedSet ` 的
142-
143-
144-
145-
146-
147-
148-
149-
150-
151-
152-
153-
154-
155-
156-
157-
158-
159-
160-
161-
162-
163-
164-
165-
141+ 图 ` 13-4 ` 。` SortedSet ` 的
166142
143+ 《《《 [ 下一节] ( 02_SortedSet_and_NavigableSet.md ) <br />
144+ 《《《 [ 返回首页] ( ../README.md )
Original file line number Diff line number Diff line change 1-
2-
1+ 《《《 [ 返回首页 ] ( ../README.md ) < br />
2+ 《《《 [ 上一节 ] ( 01_Implementing_Set.md )
33
44## SortedSet和NavigableSet
55
315315
316316在 ` EnumSet ` 实现中,对于多于 ` 64 ` 个值的枚举类型,下一个最坏情况下的复杂度为 ` O(log m) ` ,其中 ` m ` 是枚举中元素的数量。
317317
318-
318+ 《《《 [ 下一节] ( ../ch14/00_Queues.md ) <br />
319+ 《《《 [ 返回首页] ( ../README.md )
You can’t perform that action at this time.
0 commit comments