更新时间:2021-07-09 21:25:53
coverpage
Swift 2 Design Patterns
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Creational Patterns
The prototype pattern
The factory method pattern
The singleton pattern
The abstract factory pattern
The builder pattern
Summary
Chapter 2. Structural Patterns – Decorator Proxy and Bridge
Static and dynamic composition
The decorator pattern
The proxy pattern
The bridge pattern
Chapter 3. Structural Patterns – Composite and Flyweight
The composite pattern
The flyweight pattern
Chapter 4. Structural Patterns – Adapter and Facade
The adapter pattern
The facade pattern
Chapter 5. Behavioral Patterns – Strategy State and Template Method
The strategy pattern
The state pattern
The template method
Chapter 6. Behavioral Patterns – Chain of Responsibility and Command
The chain of responsibility pattern
The command pattern
Comparison between the chain of responsibility and command patterns
Chapter 7. Behavioral Patterns – Iterator Mediator and Observer
The iterator pattern
The mediator pattern
The observer pattern
Chapter 8. Behavioral Patterns – Visitor Interpreter and Memento
The visitor pattern
The interpreter pattern
The memento pattern
Comparing the three patterns
Index