Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.63 KB

File metadata and controls

32 lines (22 loc) · 1.63 KB

What is Adapter Design Pattern

  • Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
  • The Adapter Pattern is also known as Wrapper.

Diagram

Diagram

Diagram

When to use Adapter Design Pattern

When you want to create a reusable class that cooperates with classes which don't have compatible interfaces.

Learn Design Patterns with Java by Aseem Jain

This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain".

Course link:

https://www.packtpub.com/application-development/learn-design-patterns-java-9-video

Authors blog on design patterns:

https://premaseem.wordpress.com/category/computers/design-patterns/

Software Design pattern community face book page:

https://www.facebook.com/DesignPatternGuru/

Note:

  • This code base will work on Java 9 and above versions.
  • diagrams folders carry UML diagrams.
  • pattern folder has code of primary example.
  • patternBonus folder has code of secondary or bonus example.