Link Details

Link 81066 thumbnail
User 111696 avatar

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.
  • 11
  • 2
  • 2093
  • 728

Comments

Add your comment
User 119725 avatar

Peter Stofferis replied ago:

0 votes Vote down Vote up Reply

A short primer on Java enums - part 2 see:
http://www.dzone.com/links/a_short_primer_on_java_enums_part_2.html

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (2)