Automatic compareTo() generation

I guess it's not something people do all that often, however is it possible
for IDEA to autogenerate Comparable.compareTo() methods? It doesn't appear
so, and I can't see a plugin which supports it either. I'd imagine such functionality
could work in an almost identical fashion to the equals() generation, with
a bit of additional care to highlight/ignore member variables that don't
implement Comparable, and a way to choose the order the members should be
compared in.

Chris


1

Please sign in to leave a comment.