From 8c6caa29b728a53e49cb973cf902dd528cc16c07 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sat, 3 Oct 2015 11:56:59 +0300 Subject: [PATCH] Improve Adapter Javadoc --- adapter/src/main/java/com/iluwatar/adapter/App.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/adapter/src/main/java/com/iluwatar/adapter/App.java b/adapter/src/main/java/com/iluwatar/adapter/App.java index 3d10a4d41..ed036b391 100644 --- a/adapter/src/main/java/com/iluwatar/adapter/App.java +++ b/adapter/src/main/java/com/iluwatar/adapter/App.java @@ -1,7 +1,13 @@ package com.iluwatar.adapter; /** - * + * + * An adapter helps two incompatible interfaces to work together. This is the real + * world definition for an adapter. Interfaces may be incompatible but the inner + * functionality should suit the need. The Adapter design pattern allows otherwise + * incompatible classes to work together by converting the interface of one class + * into an interface expected by the clients. + *

* There are two variations of the Adapter pattern: The class adapter implements * the adaptee's interface whereas the object adapter uses composition to * contain the adaptee in the adapter object. This example uses the object