# design-pattern **Repository Path**: chenjwcc/design-pattern ## Basic Information - **Project Name**: design-pattern - **Description**: 设计模式学习 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-20 - **Last Updated**: 2021-05-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # design-pattern 设计模式: 参考: http://c.biancheng.net/design_pattern/ #### Description 1. 创建型模式 1. 单例模式:singleton 1. 懒汉式单例:lazysingleton 2. 饿汉式单例:hungrysingleton 3. 多例模式: multitcm 2. 原型模式:prototype 1. 浅克隆:shallowclone 2. 深克隆:deepclone 3. 原型管理器:manager 3. 工厂方法模式:factorymethod 4. 抽象工厂模式:abstractfactory 5. 建造者模式: builder 2. 结构型模式 1. 代理模式:proxy 1. 静态代理:staticproxy 2. 动态代理: dynamicproxy 2. 适配器模式:adapter 1. 类适配器:classadapter 2. 对象适配器:objectadapter 3. 双向适配器:twowayadapter 3. 桥接模式:bridge 4. 装饰器模式:decorator 5. 外观模式:facade 1. 普通外观模式: facade 2. 抽象外观模式: abstractfacade 6. 享元模式: flyweight 1. 享元模式:flyweight 2. 复合享元模式:complex 7. 组合模式:composite 1. 透明组合模式: opencomposite 2. 安全组合模式: safecomposite 3. 行为型模式 1. 模板方法模式:templatemethod 2. 策略模式:strategy 1. 普通策略模式:normalstrategy 2. 策略工厂模式:strategyfactory 3. 命令模式:command 1. 普通命令模式:normalcommand 2. 宏命令:macrocommand 4. 责任链模式:responsibility 5. 状态模式: state 6. 观察者模式: observer 7. 中介者模式: meditor 8. 迭代器模式: iterator 9. 访问者模式: visitor 10. 备忘录模式: memento 11. 解释器模式:interpreter