Improve Composite Javadoc
This commit is contained in:
parent
d5f52edecf
commit
807478ab3d
@ -1,10 +1,14 @@
|
|||||||
package com.iluwatar.composite;
|
package com.iluwatar.composite;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* The Composite pattern is a partitioning design pattern. The Composite pattern
|
||||||
* With Composite we can treat tree hierarchies of objects with uniform
|
* describes that a group of objects is to be treated in the same way as a single
|
||||||
* interface ({@link LetterComposite}). In this example we have sentences composed of
|
* instance of an object. The intent of a composite is to "compose" objects into
|
||||||
* words composed of letters.
|
* tree structures to represent part-whole hierarchies. Implementing the Composite
|
||||||
|
* pattern lets clients treat individual objects and compositions uniformly.
|
||||||
|
* <p>
|
||||||
|
* In this example we have sentences composed of words composed of letters. All of
|
||||||
|
* the objects can be treated through the same interface ({@link LetterComposite}).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user