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 DOG.compareTo(CAT) will tell me that dog comes before cat.
> Where if i declare them as:
>
> CAT,
> DOG;
>
> then using DOG.compareTo(CAT) will tell me that cat comes before dog.
>
> My question is, Does the GWT compiled version of Java's Enum support
> this same feature?

Yes
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/java/lang/Enum.java#80

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to