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
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.
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