In praise of Java 1.5 enums
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 15:12:25 GMT
I tried flipping some code to use enums that used to use int.
All kinds of hard to proof read case statement methods collapsed to a
nice easy to extend list of constructor calls.
The big surprise came using the code. Almost nothing had to change but
a declaration from int to the AppCat -- the enum type. Everything
worked without a hitch first time.
The enum code is so much easier to maintain.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
.
- Follow-Ups:
- Re: In praise of Java 1.5 enums
- From: Roedy Green
- Re: In praise of Java 1.5 enums
- Prev by Date: Re: Html download challenge
- Next by Date: Re: Creating a DropDown Menu
- Previous by thread: javaservice not starting service on reboot
- Next by thread: Re: In praise of Java 1.5 enums
- Index(es):
Relevant Pages
|