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.