Re: In praise of Java 1.5 enums
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 16:05:14 GMT
On Thu, 30 Jun 2005 15:12:25 GMT, Roedy Green
<look-on@xxxxxxxxxxxxxxxxxxxx> wrote or quoted :
>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.
You have a choice of flipping from static methods to enum instance
methods, but that is option, and a fairly mechanical.
The beauty comes when you add information to the constructor. It gets
rid of those gangly methods with strings of cases.
--
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: farseer
- Re: In praise of Java 1.5 enums
- References:
- In praise of Java 1.5 enums
- From: Roedy Green
- In praise of Java 1.5 enums
- Prev by Date: Dual View Enums
- Next by Date: Re: Route Finding Algorithms
- Previous by thread: In praise of Java 1.5 enums
- Next by thread: Re: In praise of Java 1.5 enums
- Index(es):
Relevant Pages
|