# patterns **Repository Path**: NikolaZhang/patterns ## Basic Information - **Project Name**: patterns - **Description**: 设计模式-java代码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-04 - **Last Updated**: 2024-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java ## README # 设计模式-java代码 ## 设计模式讲解 [设计模式讲解](https://nikolazhang.github.io/posts/pattern/) ## 设计模式的分类 ### 创建型模式 > 创建对象的模式 | 模式 | 位置 | |--------|---------------------------------------------------------------| | 抽象工厂模式 | [abstract_factory](src/constructive/factory/abstract_factory) | | 工厂方法模式 | [factory_method](src/constructive/factory/factory_method) | | 简单工厂模式 | [simple_factory](src/constructive/factory/simple_factory) | | 原型模式 | [prototype](src/constructive/prototype) | | 建造者模式 | [builder](src/constructive/build) | | 单例模式 | [singleton](src/constructive/singleton) | ### 行为型模式 > 控制对象行为的模式 | 模式 | 位置 | |-------|-------------------------------------------| | 策略模式 | [strategy](src/behavioral/strategy) | | 迭代器模式 | [iterator](src/behavioral/iterator) | | 责任链模式 | [chain](src/behavioral/chain) | | 过滤器模式 | [filter](src/behavioral/filter) | | 命令模式 | [command](src/behavioral/command) | | 解释器模式 | [interpreter](src/behavioral/interpreter) | | 观察者模式 | [observer](src/behavioral/observer) | | 状态模式 | [state](src/behavioral/state) | | 模板模式 | [template](src/behavioral/template) | | 访问者模式 | [visitor](src/behavioral/visitor) | | 备忘录模式 | [memento](src/behavioral/memento) | | 中介者模式 | [mediator](src/behavioral/mediator) | ### 结构型模式 > 控制类与对象的结构的模式 | 模式 | 位置 | |-------|---------------------------------------| | 代理模式 | [proxy](src/structural/proxy) | | 装饰模式 | [decorator](src/structural/decorator) | | 组合模式 | [composite](src/structural/composite) | | 享元模式 | [flyweight](src/structural/flyweight) | | 门面模式 | [facade](src/structural/facade) | | 适配器模式 | [adapter](src/structural/adapter) | | 桥接模式 | [bridge](src/structural/bridge) |