Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 4.17 KB

README_en.md

File metadata and controls

76 lines (59 loc) · 4.17 KB

Design Pattern implemented in Java

A pattern is a successful or efficient solution to a recurring problem within a context

There GoF design pattern has 23 design patterns and 7 object-oriented principles.

GoF(Gang of Four) have designed 7 Object-Oriented principles and 23 design patterns since 1994. The purpose of creating this project is to collect knowledge of design patterns and prevent forgiving them in the future.

I hope the project can help you study design patterns easily and help you upgrade knowledge or attain better jobs.

☕️ Startup

  1. you need open Idea;
  2. choose File -> open... -> choose this project to open

7 oriented-object principles

Documentation: doc/design-principle

23 design patterns

5 design patterns

Pattern name Path
1.Singleton Pattern creation/Singleton
2.Builder Pattern creation/Builder
3.Abstract Factory Pattern creation/AbstractFactory
4.Factory Method Pattern creation/FactoryMethod
5.Simple Factory Method Pattern creation/SimpleFactory

11 Behavior Patterns

Pattern name Path
1.Template Method behavior/Template Method
2.Strategy behavior/Strategy
3.Chain Of Responsibility behavior/Chain Of Responsibility
4.Command behavior/Command
5.State behavior/State
6.Observer behavior/Observer
7.Mediator behavior/Mediator
8.Iterator behavior/Iterator
9.Mediator behavior/Mediator
10.Memento behavior/Memento
11.Interpreter behavior/Interpreter

7 Structure Patterns

Pattern name Path
1.Proxy structure/Proxy
2.Adapter structure/Adapter
3.Bridge structure/Bridge
4.Decorator structure/Decorator
5.Facade structure/Facade
6.Flyweight structure/Flyweight
7.Composite structure/Composite

📖 Reference:

Tips:If there is any copyright issue, delete it at any time

  1. design-patterns.readthedocs
  2. c.biancheng.net/design_pattern/ (recommend)
  3. 24 design patterns (author: Sunny)

📧 Contact me:

Email: [email protected] Slogan: Break knowledge silos