docs: add adapter sequence diagram

This commit is contained in:
Ilkka Seppälä
2025-04-05 20:20:12 +03:00
parent 356db48c8e
commit faea74ae2b
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -35,6 +35,10 @@ Wikipedia says
> In software engineering, the adapter pattern is a software design pattern that allows the interface of an existing class to be used as another interface. It is often used to make existing classes work with others without modifying their source code.
Sequence diagram
![Adapter sequence diagram](./etc/adapter-sequence-diagram.png "Adapter sequence diagram")
## Programmatic Example of Adapter Pattern in Java
The Adapter Pattern example in Java shows how a class with an incompatible interface can be adapted to work with another class.
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB