Skip to content

Commit f54b268

Browse files
committed
Unnecessary space removed from doc
1 parent 596ad58 commit f54b268

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ Use the Template Method pattern when
4343
Use the Strategy pattern when
4444

4545
* Many related classes differ only in their behavior. Strategies provide a way to configure a class with one of many behaviors.
46-
4746
* You need different variant of an algorithm. For example, you might need define algorithms reflecting different space/time trade-offs. Strategies can be used when these variants are implemented as a class hierarchy of algorithm.
48-
4947
* An algorithm uses data that clients shouldn't know about. Use the strategy pattern to avoid exposing complex, algorithm-specific data structures.
50-
5148
* A class defines many behaviors, and these appear as multiple conditional statements in its operations. Instead of many conditionals, move related conditional branches into their own Strategy class.
5249

5350

@@ -58,9 +55,7 @@ Use the Template Method pattern when
5855
Use the Chain of Responsibility pattern when
5956

6057
* More than one object may handle a request, and the handler isn't known a priori. The handler should be ascertained automatically.
61-
6258
* You want to issue a request to one of several objects without specifying the receiver explicitly.
63-
6459
* The set of objects that can handle a request should be specified dynamically.
6560

6661
#### 6.Factory Method

0 commit comments

Comments
 (0)