| 1 | package BehaviouralDesignPatterns.StateDesignPattern; |
| 2 | |
| 3 | public enum Coin { |
| 4 | |
| 5 | PENNY(1), |
| 6 | NICKEL(5), |
| 7 | DIME(10), |
| 8 | QUARTER(25); |
| 9 | |
| 10 | public int value; |
| 11 | |
| 12 | Coin(int value) { |
| 13 | this.value = value; |
| 14 | } |
| 15 | } |
| 16 |
nothing calls this directly
no outgoing calls
no test coverage detected