2009/5/2 Jody Garnett wrote: > Michael I am determined to make the library easier to use; mostly > using our tutorials as a stick to beat useful methods in (or useless > methods out) where we can.
Cool ! I, and many others, will be pathetically grateful. This will really make a big difference to using the library. > For reference here is what making this a real enum would look like > (allowing font.setStyle( Font.Style.NORMAL ) to be used directly) 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 ? > It may be easier to provide these as static final ConstantExpressions > rather than group them into enumerations as has been done here. Yep, but the grouping is what's cool about enums. Plus, if needs be, you provide reverse lookups, pseudo-hierarchical enums... Michael ------------------------------------------------------------------------------ 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
