Skip to content

Commit 8c6caa2

Browse files
committed
Improve Adapter Javadoc
1 parent 0a61d7b commit 8c6caa2

File tree

1 file changed

+7
-1
lines changed
  • adapter/src/main/java/com/iluwatar/adapter

1 file changed

+7
-1
lines changed

adapter/src/main/java/com/iluwatar/adapter/App.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
package 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

0 commit comments

Comments
 (0)