Skip to main content

Blog Archive for ryano during January 2005

Recently I've been reading "Head First Design Patterns" as well as "Java 1.5 Tiger - A Developer's Notebook". Both are really good books by the way.  I was reading the chapter on the State design pattern when it occurred to me that the new Enum feature in J2SE 5.0 would be a perfect way to implement the state design pattern. Typically, the state pattern is used to model a state transition...