mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Move UpdateStrategy classes to strategy package
item 패키지를 만들까 했는데, depth 증가보다는 strategy만 두는거로..
This commit is contained in:
parent
9482acd29c
commit
8b57050790
@ -1,5 +1,7 @@
|
||||
package com.gildedrose;
|
||||
|
||||
import com.gildedrose.strategy.*;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
class GildedRose {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
package com.gildedrose;
|
||||
package com.gildedrose.strategy;
|
||||
|
||||
import com.gildedrose.Item;
|
||||
|
||||
public class AgedBrieUpdateStrategy implements ItemUpdateStrategy {
|
||||
@Override
|
||||
@ -1,4 +1,6 @@
|
||||
package com.gildedrose;
|
||||
package com.gildedrose.strategy;
|
||||
|
||||
import com.gildedrose.Item;
|
||||
|
||||
public class BackstagePassesUpdateStrategy implements ItemUpdateStrategy {
|
||||
@Override
|
||||
@ -1,4 +1,6 @@
|
||||
package com.gildedrose;
|
||||
package com.gildedrose.strategy;
|
||||
|
||||
import com.gildedrose.Item;
|
||||
|
||||
public interface ItemUpdateStrategy {
|
||||
void update(Item item);
|
||||
@ -1,4 +1,6 @@
|
||||
package com.gildedrose;
|
||||
package com.gildedrose.strategy;
|
||||
|
||||
import com.gildedrose.Item;
|
||||
|
||||
public class StandardItemUpdateStrategy implements ItemUpdateStrategy {
|
||||
@Override
|
||||
@ -1,4 +1,6 @@
|
||||
package com.gildedrose;
|
||||
package com.gildedrose.strategy;
|
||||
|
||||
import com.gildedrose.Item;
|
||||
|
||||
public class SulfurasUpdateStrategy implements ItemUpdateStrategy {
|
||||
@Override
|
||||
Loading…
Reference in New Issue
Block a user