If you implement a compareTo method then you should also implement the Comparable interface. If you don't then you could possibly get an exception if the Groovy == operator is invoked on your object. This is an issue fixed in Groovy 1.8 but present in previous versions.
Type | Name and description |
---|---|
Class |
astVisitorClass |
String |
name |
int |
priority |