• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Design Patterns | Adapter
  1. References
  2. Example
    • The Adaptee
    • The Adapter
    • A simple class to test the Adapter design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Adapter_pattern)

      An adapter helps two incompatible interfaces to work together.

    • Class diagram: (source: http://en.wikipedia.org/wiki/Adapter_pattern)

      Adapter Pattern
  2. Example
    • The Adaptee:


    • The Adapter:


    • A simple class to test the Adapter design pattern:


© 2025  mtitek