Community
Participate
Working Groups
Build Identifier: I20100129-1300 This will be very similar to the generate equals() and hashcode() functionality that is already available in eclipse. If you have a class that implements Comparable and want Eclipse to implement the compareTo for you. I expect it will prompt you which fields to use (just like equals and hashcode). It should of course complain if you choose fields that aren't primitive and don't implement Comparable. Reproducible: Always
Also I realize that apache commons has a CompareToBuilder and a plugin to go with it (http://commonclipse.sourceforge.net/index.html), however the code that apache commons uses is not as efficient as a template version will be. Object creation in the compareTo() method can cause quite severe performance problems in certain circumstances.