File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
composite/src/main/java/com/iluwatar/composite Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .iluwatar .composite ;
2
2
3
3
/**
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}).
8
12
*
9
13
*/
10
14
public class App {
You can’t perform that action at this time.
0 commit comments