Re: GWT enum comparison

2010-02-11 Thread bconoly
Thanks On Feb 10, 7:48 pm, Thomas Broyer t.bro...@gmail.com wrote: On 10 fév, 18:05, bconoly bcon...@gmail.com wrote: Hello All,     I have an enum in which I'm trying to use it's natural ordering. In the javadocs for the java enum I get that it's based on the order the enum constants

GWT enum comparison

2010-02-10 Thread bconoly
Hello All, I have an enum in which I'm trying to use it's natural ordering. In the javadocs for the java enum I get that it's based on the order the enum constants are declared so if I declare an animal enum as: DOG, CAT; then using DOG.compareTo(CAT) will tell me that dog comes before cat.

Re: GWT enum comparison

2010-02-10 Thread Thomas Broyer
On 10 fév, 18:05, bconoly bcon...@gmail.com wrote: Hello All,     I have an enum in which I'm trying to use it's natural ordering. In the javadocs for the java enum I get that it's based on the order the enum constants are declared so if I declare an animal enum as: DOG, CAT; then using