Detailed Java Design Patterns

Source: Internet
Author: User

Design Patterns : Design Patterns are a set of reusable, most well-known, categorized purposes, code design experiences that use design patterns to reuse code, make code easier for others to understand, and ensure code reliability.

The narrow design pattern refers to the 23 kinds of classic design patterns introduced in the book "Design pattern: The basis of reusable object-oriented software", but the design pattern is not only 23, with the development of software development, more and more new models are GOF and applied.

Design patterns can be divided into: Create-type (creational): The creation pattern is primarily used to describe how to create an object

Structural type (Structural): Primarily used to describe how to implement a class or object combination

Behavioral type (behavioral): used primarily to describe how classes or objects interact and assign responsibilities

5 Types of Creation design patterns, 7 structural design patterns and 11 behavioral design patterns.

There is a design pattern, although not part of the Gof 23 design patterns, but generally in the introduction of design patterns will explain it, it is a simple Factory mode , so a total of 24 design patterns

Type mode Name Learning Difficulty Frequency of Use
Create pattern creational Patterns Singleton pattern Singleton pattern★☆☆☆☆★★★★☆
Create mode Creational pattern Factory method mode Factory pattern★★☆☆☆★★★★★
Create pattern Creationalpattern abstract Factory mode Factory pattern★★★★☆★★★★★
Create mode creational pattern prototype mode Prototype pattern★★★☆☆★★★☆☆
Create pattern creational pattern Builder pattern★★★★☆★★☆☆☆
Structural mode Structural Pattern Adapter mode Adapter pattern★★☆☆☆★★★★☆
Structural pattern Structural pattern Bridging mode bridge pattern★★★☆☆★★★☆☆
Structural pattern Structural pattern Combination mode Composite pattern★★★☆☆★★★★☆
Structural pattern Structural pattern Decoration mode Decorator pattern★★★☆☆★★★☆☆
Structural pattern Structural Pattern appearance mode Façade pattern★☆☆☆☆★★★★★
Structural pattern Structural Pattern Flyweight pattern★★★★☆★☆☆☆☆
Structural mode Structural Pattern proxy pattern★★★☆☆★★★★☆
Behavioral pattern Behavioral Pattern Responsibility chain mode Chain of responsibilitypattern★★★☆☆★★☆☆☆
Behavioral Mode Behavioral Pattern command pattern★★★☆☆★★★★☆
Behavioral pattern Behavioral Pattern Interpreter mode interpreter pattern★★★★★★☆☆☆☆
Behavioral pattern Behavioral Pattern iterator mode Iterator pattern★★★☆☆★★★★★
Behavioral pattern Behavioral Pattern Mediator mode Mediator pattern★★★☆☆★★☆☆☆
Behavioral Pattern Behavioral Pattern Memo mode Memento pattern★★☆☆☆★★☆☆☆
Behavioral patterns Behavioral Pattern observer patterns Observer pattern★★★☆☆★★★★★
Behavioral pattern Behavioral Pattern State mode pattern★★★☆☆★★★☆☆
Behavioral patterns Behavioral Pattern policy mode strategy pattern★☆☆☆☆★★★★☆
Behavioral pattern Behavioral Pattern Template Method pattern★★☆☆☆★★★☆☆
Behavioral Pattern Behavioral Pattern Visitor pattern Visitor pattern★★★★☆★☆☆☆☆

Detailed Java Design Patterns

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.