BJO - The new Java 5 enum vs. the Type Safe Enum pattern
posted 10 years ago
Welcome to the Ranch. I started reading your explanation about the new Java 5 enum feature. I used this recently in a small project I am working on and it seems like a slick way to easily enumerate values, just like you described in your other posts. However, I am curious why your list of "previous solutions" does not include the Typesafe Enum pattern that is commonly used in pre-1.5 code? Can you comment on how the new 1.5 enum compares with the Typesafe Enum pattern?