> In general, I like the idea of using an enum a lot
>
>> - you cannot provide an implementation of equals or hascode for an
>> enumeration (so I need to use a CodeList)
>
> True, but is that a big problem ?

Yes; to meet the contract for the interface Literal we should allow
these to be equal to other literals.

> Yep, but the grouping is what's cool about enums.  Plus, if needs be,
> you provide reverse lookups, pseudo-hierarchical enums...

We can provide our own implementation of equals for CodeList I think
(code list is our own home brew version of enum from before java 5; it
also lets you add more entries over time - if enums are good for a
machine readible fixed set of Constants; code lists are good for an
open ended set of Constants) ...

Jody

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to