Skip to content

Commit 807478a

Browse files
committed
Improve Composite Javadoc
1 parent d5f52ed commit 807478a

File tree

1 file changed

+8
-4
lines changed
  • composite/src/main/java/com/iluwatar/composite

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package com.iluwatar.composite;
22

33
/**
4-
*
5-
* With Composite we can treat tree hierarchies of objects with uniform
6-
* interface ({@link LetterComposite}). In this example we have sentences composed of
7-
* words composed of letters.
4+
* The Composite pattern is a partitioning design pattern. The Composite pattern
5+
* describes that a group of objects is to be treated in the same way as a single
6+
* instance of an object. The intent of a composite is to "compose" objects into
7+
* tree structures to represent part-whole hierarchies. Implementing the Composite
8+
* pattern lets clients treat individual objects and compositions uniformly.
9+
* <p>
10+
* In this example we have sentences composed of words composed of letters. All of
11+
* the objects can be treated through the same interface ({@link LetterComposite}).
812
*
913
*/
1014
public class App {

0 commit comments

Comments
 (0)