-
Notifications
You must be signed in to change notification settings - Fork 220
Commit aa4867a
committed
Update strategy pattern examples
1 parent 1a7769b commit aa4867a
File tree
16 files changed
+54
-82
lines changed- src/BehavioralPatterns/Strategy/StrategyLibrary
- ShippingExample
- ShippingProviders
- Common
- SortingExample
- Strategies
- Common
16 files changed
+54
-82
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | - | ||
16 | + | ||
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
18 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
6 | 11 | | |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
18 | - | ||
14 | + | ||
15 | + | ||
16 | + | ||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
35 | + | ||
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | - | ||
43 | + | ||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | - | ||
6 | + | ||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
7 | + | ||
8 | + | ||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
7 | + | ||
8 | + | ||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
7 | + | ||
8 | + | ||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | - | ||
14 | 13 | | |
15 | - | ||
16 | 14 | | |
17 | 15 | | |
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
16 | + | ||
17 | + | ||
0 commit comments