auto commit
This commit is contained in:
100
notes/设计模式.md
100
notes/设计模式.md
@ -2,32 +2,132 @@
|
||||
* [一、概述](#一概述)
|
||||
* [二、创建型](#二创建型)
|
||||
* [1. 单例(Singleton)](#1-单例singleton)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [Examples](#examples)
|
||||
* [JDK](#jdk)
|
||||
* [2. 简单工厂(Simple Factory)](#2-简单工厂simple-factory)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [3. 工厂方法(Factory Method)](#3-工厂方法factory-method)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [4. 抽象工厂(Abstract Factory)](#4-抽象工厂abstract-factory)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [5. 生成器(Builder)](#5-生成器builder)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [6. 原型模式(Prototype)](#6-原型模式prototype)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [三、行为型](#三行为型)
|
||||
* [1. 责任链(Chain Of Responsibility)](#1-责任链chain-of-responsibility)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [2. 命令(Command)](#2-命令command)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [3. 解释器(Interpreter)](#3-解释器interpreter)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [4. 迭代器(Iterator)](#4-迭代器iterator)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [5. 中介者(Mediator)](#5-中介者mediator)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [6. 备忘录(Memento)](#6-备忘录memento)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [7. 观察者(Observer)](#7-观察者observer)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [8. 状态(State)](#8-状态state)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [9. 策略(Strategy)](#9-策略strategy)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [与状态模式的比较](#与状态模式的比较)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [10. 模板方法(Template Method)](#10-模板方法template-method)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [11. 访问者(Visitor)](#11-访问者visitor)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [12. 空对象(Null)](#12-空对象null)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [四、结构型](#四结构型)
|
||||
* [1. 适配器(Adapter)](#1-适配器adapter)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [2. 桥接(Bridge)](#2-桥接bridge)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [3. 组合(Composite)](#3-组合composite)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [4. 装饰(Decorator)](#4-装饰decorator)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [设计原则](#设计原则)
|
||||
* [JDK](#jdk)
|
||||
* [5. 外观(Facade)](#5-外观facade)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [设计原则](#设计原则)
|
||||
* [6. 享元(Flyweight)](#6-享元flyweight)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [7. 代理(Proxy)](#7-代理proxy)
|
||||
* [Intent](#intent)
|
||||
* [Class Diagram](#class-diagram)
|
||||
* [Implementation](#implementation)
|
||||
* [JDK](#jdk)
|
||||
* [参考资料](#参考资料)
|
||||
<!-- GFM-TOC -->
|
||||
|
||||
|
Reference in New Issue
Block a user