What it is good for

The adapter design pattern is useful in cases after the code is designed and written. It allows us to make, otherwise incompatible, interfaces work together. It is also pretty straightforward to implement and use.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.