Skip to content

Glossary: Software Design Patterns in Java

Adapter

Also written: adapter pattern

A small class that holds an outside library object and offers the interface your code expects, translating each call. `UpsCarrier` turns UPS's cents-based `UpsApi` into dollar quotes.

Where the book teaches it

Related terms

WrapperDecorator