Comparing ENUMS : <p>I am trying to write some code about a farm. The farm has different types of animals, described as Enums. I want to write a comparator that would compare the animals and tell which one is bigger. How could I manually tell him Cow is bigger than a dog, if these two have no parameters that could be compared to? for ex. there is no Cow.size=10, Dog.size=2, so if we compare the size we get the bigger. I just have ENUMS, and I want tell my comparator that if it compares a cow and a dog the cow is bigger. I have read online that the interface <strong>Comparable </strong> is very useful for this, but I couldn`t understand, how could I implement it on my case. </p>

<p>Thanks in advance.</p>
