Re: In praise of Java 1.5 enums
- From: Lasse Reichstein Nielsen <lrn@xxxxxxxxxx>
- Date: Thu, 30 Jun 2005 23:15:19 +0200
"farseer" <farseer@xxxxxxxxxxxxx> writes:
> i have always written my own enum classes that maintain a hashtable to
> ensure only one instance of any enum constant is instantiated. how
> does the new classes help?
It doesn't give you any new functionality, just a shorter syntax.
Behind the scene, enum classes are compiled into type-safe enum
classes.
/L
--
Lasse Reichstein Nielsen - lrn@xxxxxxxxxx
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
.
- References:
- In praise of Java 1.5 enums
- From: Roedy Green
- Re: In praise of Java 1.5 enums
- From: Roedy Green
- Re: In praise of Java 1.5 enums
- From: farseer
- In praise of Java 1.5 enums
- Prev by Date: back into the swing (no pun intended)
- Previous by thread: Re: In praise of Java 1.5 enums
- Next by thread: Dual View Enums
- Index(es):