The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java Enums want to be Classes

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Max Zone

Posts: 9170
Nickname: dzone
Registered: Jun, 2006

dzone.com is a link-sharing community where member participation determines what gets published
Java Enums want to be Classes Posted: Apr 3, 2007 9:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Max Zone.
Original Post: Java Enums want to be Classes
Feed Title: dzone.com: java
Feed URL: http://feeds.dzone.com/dzone/java
Feed Description: dzone.com: fresh java links for developers
Latest Java Buzz Posts
Latest Java Buzz Posts by Max Zone
Latest Posts From dzone.com: java

Advertisement
For the longest while, I was glad that Java didn't have support for enumerated types. I've used them in C and C++ but I often ended up in that weird place that calls for the Replace Type Code with State/Strategy refactoring: I start writing a switch statement that uses the enum and I know that the code in the cases could be in a class, if only I had one instead of the enum.

Read: Java Enums want to be Classes

Topic: Links for 2007-03-29 [del.icio.us] Previous Topic   Next Topic Topic: JNI-Native Boot and MIDP and flashlite integration

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use