auto commit
This commit is contained in:
parent
f72a49d2c2
commit
8620ad8834
@ -7,10 +7,10 @@
|
||||
### Class Diagram
|
||||
|
||||
- Aggregate 是聚合类,其中 createIterator() 方法可以产生一个 Iterator;
|
||||
- Iterator 主要定义了 hasNext() 和 next() 方法。
|
||||
- Iterator 主要定义了 hasNext() 和 next() 方法;
|
||||
- Client 组合了 Aggregate,为了迭代遍历 Aggregate,也需要组合 Iterator。
|
||||
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/89292ae1-5f13-44dc-b508-3f035e80bf89.png"/> </div><br>
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20191130164425351.png" alt="image-20191130164425351" style="zoom: 67%;" /> </div><br>
|
||||
|
||||
### Implementation
|
||||
|
||||
|
BIN
notes/pics/image-20191130164420139.png
Normal file
BIN
notes/pics/image-20191130164420139.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
BIN
notes/pics/image-20191130164425351.png
Normal file
BIN
notes/pics/image-20191130164425351.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
@ -7,10 +7,10 @@
|
||||
### Class Diagram
|
||||
|
||||
- Aggregate 是聚合类,其中 createIterator() 方法可以产生一个 Iterator;
|
||||
- Iterator 主要定义了 hasNext() 和 next() 方法。
|
||||
- Iterator 主要定义了 hasNext() 和 next() 方法;
|
||||
- Client 组合了 Aggregate,为了迭代遍历 Aggregate,也需要组合 Iterator。
|
||||
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/89292ae1-5f13-44dc-b508-3f035e80bf89.png"/> </div><br>
|
||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20191130164425351.png" alt="image-20191130164425351" style="zoom: 67%;" /> </div><br>
|
||||
|
||||
### Implementation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user