Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 625 Bytes

File metadata and controls

18 lines (12 loc) · 625 Bytes

Java Coaching

| Java Coaching | Java Patterns |

Adapter design pattern

Intent

  • Convert the interface of a class into another interface expected by the client.
  • Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces.
  • Wrap an existing class with a new interface.
  • Impedance match an old component to a new system

Classes

Java implementation of the Adapter design pattern

See also