| 1 | package BehaviouralDesignPatterns.StateDesignPattern; |
| 2 | |
| 3 | public class Item { |
| 4 | ItemType type; |
| 5 | int price; |
| 6 | |
| 7 | public ItemType getType() { |
| 8 | return type; |
| 9 | } |
| 10 | |
| 11 | public void setType(ItemType type) { |
| 12 | this.type = type; |
| 13 | } |
| 14 | |
| 15 | public int getPrice() { |
| 16 | return price; |
| 17 | } |
| 18 | |
| 19 | public void setPrice(int price) { |
| 20 | this.price = price; |
| 21 | } |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected