Commons already has an enum facility in commons-lang. It is designed for
pre-JDK 1.5, works reasonably well and provides most of the semantics
you are looking for.
For JDK1.5 onwards, most developers would choose the Sun supported enum
facility. It appears to meet most peoples requirements.
John,
I am not interested in this. It doesn't appear to play well with Java's
current enum facility, which has shown itself to work very well in practice.
Josh
On 6/22/06, John Kaplan <[EMAIL PROTECTED]> wrote:
Hello All,
I've been working on a Java card playing program in my spare tim
Josh - sorry to hear that. I was hoping you would be interested because this
is a nice way to implement your Enumeration pattern once and reuse the
implementation.
I have nothing against the enum facility in Java 1.5, but don't want to have
to keep re-implementing serialization and property suppo
Hello All,
I've been working on a Java card playing program in my spare time, and I
figured out something about Enumerations that may be of general use.
The issue is if you are working with concepts like card ranks and suits in a
non-trivial application, you want them to be comparable, serializa