Adapter

This is a UML class diagram example for the Adapter design pattern.

Purpose

Permits classes with disparate interfaces to work together by creating a common object by which they may communicate and interact.

Use When

  • A class to be used doesn't meet interface requirements.
  • Complex conditions tie object behavior to its state.
  • Transitions between states need to be explicit.
Import into your Project

Posted by: Brittany Shook