From e7f806637a70e5a7cdc1b13a968c7c508eada87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Wed, 25 Feb 2015 15:56:21 +0200 Subject: [PATCH] Added real world example for Adapter. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d260cf8c4..f9d4d123f 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,9 @@ * you want to create a reusable class that cooperates with unrelated or unforeseen classes, that is, classes that don't necessarily have compatible interfaces * you need to use several existing subclasses, but it's impractical to adapt their interface by subclassing every one. An object adapter can adapt the interface of its parent class. +**Real world examples:** +* [java.util.Arrays#asList()](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList%28T...%29) + ## Bridge [↑](#list-of-design-patterns) **Intent:** Decouple an abstraction from its implementation so that the two can vary independently.