Coder Social home page Coder Social logo

java_design_coding's Introduction

java_design_coding

java设计模式

factory_pattern:工厂方法模式

abstract_factory: 抽象工厂

builder: 建造者模式*

  • com.chc.design_coding.builder.v2 :建造者模式演进版本(链式调用)

singleton: 单例模式*

prototype: 原型模式

facade:外观模式

decorator:装饰者模式*

  • v1:继承方式的做法
  • v2:装饰者模式的做法

adapter:适配器模式*

flyweight: 享元模式

composite:组合模式 *

bridge:桥接模式*

templatemethod:模板模式*

iterator:迭代器模式

strategy:策略模式

interpreter:解释器模式

observer:观察者模式

memento:备忘录模式

command:命令模式

mediator:中介者模式

chainofresponsibility:责任链模式

visitor:访问者模式

state:状态模式

常用的设计模式

  1. 创建型
  • 工厂方法模式
  • 抽象工厂模式
  • 建造者模式
  • 单例模式
  1. 结构型模式
  • 适配者模式
  • 装饰者模式
  • 代理模式
  • 外观模式
  • 桥接模式
  • 享元模式
  1. 行为型
  • 策略模式
  • 模板方法
  • 责任链模式
  • 状态模式

java_design_coding's People

Contributors

chcgolang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.