设计模式知识点总结

文章目录

  • [1 设计模式](#1 设计模式)
    • [1.1 创建型(Creational)](#1.1 创建型(Creational))
      • [1.1.1 【类】工厂方法模式(Factory Method)](#1.1.1 【类】工厂方法模式(Factory Method))
      • [1.1.2 抽象工厂模式(Abstract Factory)](#1.1.2 抽象工厂模式(Abstract Factory))
      • [1.1.3 建造者模式(Builder)【2020】](#1.1.3 建造者模式(Builder)【2020】)
      • [1.1.4 原型模式(Prototype)](#1.1.4 原型模式(Prototype))
      • [1.1.5 单例模式(Singleton)](#1.1.5 单例模式(Singleton))
    • [1.2 结构型(Structural)](#1.2 结构型(Structural))
      • [1.2.1 【类】适配器模式(Adapter - Class)](#1.2.1 【类】适配器模式(Adapter - Class))
      • [1.2.2 适配器模式(Adapter - Object)【2022】](#1.2.2 适配器模式(Adapter - Object)【2022】)
      • [1.2.3 桥接模式(Bridge)](#1.2.3 桥接模式(Bridge))
      • [1.2.4 组合模式(Composite)](#1.2.4 组合模式(Composite))
      • [1.2.5 装饰模式(Decorator)](#1.2.5 装饰模式(Decorator))
      • [1.2.6 外观模式(Facade)](#1.2.6 外观模式(Facade))
      • [1.2.7 享元模式(Flyweight)](#1.2.7 享元模式(Flyweight))
      • [1.2.8 代理模式(Proxy)](#1.2.8 代理模式(Proxy))
    • [1.3 行为型(Behavioral)](#1.3 行为型(Behavioral))
      • [1.3.1 【类】解释器模式(Interpreter)](#1.3.1 【类】解释器模式(Interpreter))
      • [1.3.2 【类】模板方法模式(Template Method)](#1.3.2 【类】模板方法模式(Template Method))
      • [1.3.3 责任链模式(Chain of Responsibility)【2022】](#1.3.3 责任链模式(Chain of Responsibility)【2022】)
      • [1.3.4 命令模式(Command)【2021】](#1.3.4 命令模式(Command)【2021】)
      • [1.3.5 迭代器模式(Iterator)【对象】](#1.3.5 迭代器模式(Iterator)【对象】)
      • [1.3.6 中介者模式(Mediator)【2021】](#1.3.6 中介者模式(Mediator)【2021】)
      • [1.3.7 备忘录模式(Memento)【对象】](#1.3.7 备忘录模式(Memento)【对象】)
      • [1.3.8 观察者模式(Observer)【对象】](#1.3.8 观察者模式(Observer)【对象】)
      • [1.3.9 状态模式(State)【对象】](#1.3.9 状态模式(State)【对象】)
      • [1.3.10 策略模式(Strategy)【2021】](#1.3.10 策略模式(Strategy)【2021】)
      • [1.3.11 访问者模式(Visitor)【对象】](#1.3.11 访问者模式(Visitor)【对象】)

1 设计模式

1.1 创建型(Creational)

1.1.1 【类】工厂方法模式(Factory Method)

1.1.2 抽象工厂模式(Abstract Factory)

1.1.3 建造者模式(Builder)【2020】



1.1.4 原型模式(Prototype)

1.1.5 单例模式(Singleton)

1.2 结构型(Structural)

1.2.1 【类】适配器模式(Adapter - Class)

1.2.2 适配器模式(Adapter - Object)【2022】


1.2.3 桥接模式(Bridge)

1.2.4 组合模式(Composite)

1.2.5 装饰模式(Decorator)

1.2.6 外观模式(Facade)

1.2.7 享元模式(Flyweight)

1.2.8 代理模式(Proxy)

1.3 行为型(Behavioral)

1.3.1 【类】解释器模式(Interpreter)

1.3.2 【类】模板方法模式(Template Method)

1.3.3 责任链模式(Chain of Responsibility)【2022】


1.3.4 命令模式(Command)【2021】



1.3.5 迭代器模式(Iterator)【对象】

1.3.6 中介者模式(Mediator)【2021】


1.3.7 备忘录模式(Memento)【对象】

1.3.8 观察者模式(Observer)【对象】

1.3.9 状态模式(State)【对象】

1.3.10 策略模式(Strategy)【2021】



1.3.11 访问者模式(Visitor)【对象】

相关推荐
青山师2 小时前
动态代理深度解析:JDK与CGLIB底层实现与实战
java·设计模式·面试·动态代理·java面试·cglib
蜡笔小马4 小时前
03.C++设计模式-原型模式
c++·设计模式·原型模式
何陋轩10 小时前
Spring AI + RAG实战:打造企业级智能问答系统
后端·算法·设计模式
sindyra11 小时前
享元模式(Flyweight Pattern)
java·开发语言·设计模式·享元模式·优缺点
这是程序猿11 小时前
设计模式入门:Java 单例模式(Singleton)详解,从入门到实战
java·单例模式·设计模式
suixinm11 小时前
Agent 设计模式:从 ReAct、CodeAct 到 Agentic Rag 与多智能体
设计模式·ai·react·rag·ai agent·agent智能体·multi-agent
geovindu12 小时前
go: Registry Pattern
开发语言·后端·设计模式·golang·注册模式
05候补工程师12 小时前
【Python实战】告别杂乱脚本!基于SOLID原则与策略模式的 PDF转Word 批量处理系统
python·设计模式·pdf·word·策略模式
lsswear16 小时前
PHP 设计模式
设计模式·php