Skip to content

Commit e7f8066

Browse files
committed
Added real world example for Adapter.
1 parent e30dcbe commit e7f8066

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
* you want to create a reusable class that cooperates with unrelated or unforeseen classes, that is, classes that don't necessarily have compatible interfaces
118118
* 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.
119119

120+
**Real world examples:**
121+
* [java.util.Arrays#asList()](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList%28T...%29)
122+
120123
## <a name="bridge">Bridge</a> [&#8593;](#list-of-design-patterns)
121124
**Intent:** Decouple an abstraction from its implementation so that the two can vary independently.
122125

0 commit comments

Comments
 (0)