By bloid
via java.dzone.com
Published: May 16 2008 / 14:07
In his JavaOne talk this year, Josh Bloch gave some very useful tips about using enums in Java. Here is my take on enums, and how to use them to represent simple value lists which would otherwise be stored in code tables. This document is in two parts - Part one covers the basics of Java enums, and Part 2 goes into more advanced use cases such as using enums with Hibernate.
Comments
Peter Stofferis replied ago:
A short primer on Java enums - part 2 see:
http://www.dzone.com/links/a_short_primer_on_java_enums_part_2.html
Voters For This Link (11)
Voters Against This Link (2)