# design_mode_23 **Repository Path**: awyoo/design_mode_23 ## Basic Information - **Project Name**: design_mode_23 - **Description**: 学习之:23种设计模式 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-03-02 - **Last Updated**: 2022-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目结构 下面是整个项目结构,主要类已做注释。 ``` ├─main │ └─java │ └─com.luobo │ ├─found --- 创建型模式(5种) │ │ ├─bulider --- 建造者模式 │ │ ├─factory --- 工厂模式 │ │ │ ├─abstract --- 抽象工厂模式 │ │ │ ├─method --- 工厂方法模式 │ │ │ └─simple --- 简单工厂模式 │ │ ├─prototype --- 原型模式 │ │ └─singleton --- 单例模式 │ ├─ structure --- 结构性模式(7种) │ │ ├─adapter --- 适配器模式 │ │ └─decorator --- 装饰者模式 │ └─ behavior --- 行为型模式(11种) │ ├─observer --- 观察者模式 │ ├─strategy --- 策略模式 │ │ 未完待续... ``` #### 创建型模式 found(5种): ``` 工厂方法模式(Factory Method Pattern) √ 抽象工厂模式(Abstract Factory Pattern) √ 单例模式(Singleton Pattern) √ 建造者模式(Builder Pattern) √ 原型模式(Prototype Pattern) √ ``` #### 结构性模式 structure(7种): ![在这里插入图片描述](http://49.234.127.219:8080/solr/2.png) ``` 适配器模式(Adapter Pattern) √ 装饰者模式(Decorator Pattern) √ 代理模式(Proxy Pattern) 外观模式(Facade Pattern) 桥接模式(Bridge Pattern) 组合模式(Composite Pattern) 享元模式(Flyweight Pattern) ``` #### 行为型模式(关系模式) behavior(11种): ![在这里插入图片描述](http://49.234.127.219:8080/solr/1.jpg) ``` 策略模式(Strategy Pattern) √ 模板方法模式(Template Method Pattern) √ 观察者模式(Observer Pattern) √ 迭代器模式(Iterator Pattern) 责任链模式(Chain of Responsibility Pattern) 命令模式(Command Pattern) 备忘录模式(Memento Pattern) 状态模式(State Pattern) 访问者模式(Visitor Pattern) 中介者模式(Mediator Pattern) 解释器模式(Interpreter Pattern) ```