File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
adapter/src/main/java/com/iluwatar/adapter Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11package com .iluwatar .adapter ;
22
33/**
4- *
4+ *
5+ * An adapter helps two incompatible interfaces to work together. This is the real
6+ * world definition for an adapter. Interfaces may be incompatible but the inner
7+ * functionality should suit the need. The Adapter design pattern allows otherwise
8+ * incompatible classes to work together by converting the interface of one class
9+ * into an interface expected by the clients.
10+ * <p>
511 * There are two variations of the Adapter pattern: The class adapter implements
612 * the adaptee's interface whereas the object adapter uses composition to
713 * contain the adaptee in the adapter object. This example uses the object
You can’t perform that action at this time.
0 commit comments