Adapter Pattern - MacKittipat/note-design-pattern GitHub Wiki
-
The adapter acts as the middleman by receiving requests from the client and converting them into requests that make sense on the vendors class
-
Convert the interface of a class into another interface the clients expect.
-
Allow client to work with incompatible interface by creating an Adapter that does the conversion.
-
Allow client to make use of new libraries and subsets without changing any code.