Learn more about how to use modern state patterns in this post on object behavior, enums, and functional interfaces in Java.