Java Enum - State Pattern
Channel: veganaiZe
Date: 2023-11-03

Join me as I convert the generic State Pattern from "Head First Design Patterns" into idiomatic Java code, using an `enum`.

Refactored example: https://github.com/veganaize/JAVA/blob/main/Design%20Patterns/Enum-State-Pattern/GumballMachine.java

Original code: https://github.com/bethrobson/Head-First-Design-Patterns/tree/master/src/headfirst/designpatterns/state