当前位置: 首页 > news >正文

Java设计原则和设计模式

目录

第一部分:设计原则

  1. 单一职责原则 (Single Responsibility Principle)
  2. 开闭原则 (Open-Closed Principle)
  3. 里氏替换原则 (Liskov Substitution Principle)
  4. 接口隔离原则 (Interface Segregation Principle)
  5. 依赖倒置原则 (Dependency Inversion Principle)
  6. 合成/聚合复用原则 (Composition/Aggregation Reuse Principle)
  7. 最少知识原则 (Principle of Least Knowledge)

第二部分:设计模式

创建型模式 (Creational Patterns)
  1. 单例模式 (Singleton Pattern)
  2. 原型模式 (Prototype Pattern)
  3. 工厂方法模式 (Factory Method Pattern)
  4. 抽象工厂模式 (Abstract Factory Pattern)
  5. 建造者模式 (Builder Pattern)
结构型模式 (Structural Patterns)
  1. 适配器模式 (Adapter Pattern)
  2. 桥接模式 (Bridge Pattern)
  3. 组合模式 (Composite Pattern)
  4. 装饰器模式 (Decorator Pattern)
  5. 外观模式 (Facade Pattern)
  6. 享元模式 (Flyweight Pattern)
  7. 代理模式 (Proxy Pattern)
行为型模式 (Behavioral Patterns)
  1. 责任链模式 (Chain of Responsibility Pattern)
  2. 命令模式 (Command Pattern)
  3. 解释器模式 (Interpreter Pattern)
  4. 迭代器模式 (Iterator Pattern)
  5. 中介者模式 (Mediator Pattern)
  6. 备忘录模式 (Memento Pattern)
  7. 观察者模式 (Observer Pattern)
  8. 状态模式 (State Pattern)
  9. 策略模式 (Strategy Pattern)
  10. 模板方法模式 (Template Method Pattern)
  11. 访问者模式 (Visitor Pattern)
http://www.lryc.cn/news/241361.html

相关文章:

  • webshell之基于框架免杀
  • QT QJsonObject 插入 QByteArray十六进制数据
  • 概要设计文档案例分享
  • 微服务qiankun通信方式
  • 【Azure 架构师学习笔记】-Azure Storage Account(7)- 权限控制
  • 听GPT 讲Rust源代码--src/tools(2)
  • 【python学习】基础篇-常用模块-collections模块:数据结构,如列表、元组、字典和集合等
  • 【电路笔记】-电源电压
  • kali部署ARL灯塔资产系统及使用教程
  • 一、用户管理
  • Could not publish to the server. java.lang.NullPointerException
  • SpringMVC(三)
  • 打印菱形-第11届蓝桥杯选拔赛Python真题精选
  • 『亚马逊云科技产品测评』活动征文|搭建Squoosh图片在线压缩工具
  • 基于亚马逊云科技大语言模型等服务打造企业知识库
  • FFmpeg 使用
  • NLP的使用
  • Navicat DML 操作
  • Springboot-热部署-IDEA2023
  • 人工智能和AR/VR:AI在AR和VR中扮演什么角色?行业应用有哪些?
  • Linux进程通信之共享内存
  • 接口自动化测试:pytest基础讲解
  • 基于JavaWeb+SpringBoot+Vue医院管理系统小程序的设计和实现
  • 收藏这几个开源库,写css你会笑出声
  • 给localStorage缓存添加全局监听器
  • blk_mq_init_queue函数学习记录
  • 高防服务器的工作原理
  • 2023.11.19使用flask制作一个文件夹生成器
  • 【04】ES6:字符串的扩展
  • Docker可视化管理界面工具Portainer安装