Comparator Cutter

Generates custom Java code to implemet Comparable/Comparator interfaces.

Comparator Cutter is an Applet that generates custom Java code to implement Comparable/Comparator. The Applet lets you provide a few facts about the Comparable or Comparator you want and the ComparatorCutter generates you well-commented Java source code to include in your own programs. It ask you the name of the Comparator class, the name of the class of objects you are comparing, the names and types of the fields to sort/compare the objects, and whether you want ascending/descending order for each field. If you want code that will handle null sort keys, tick off null safe. You can also run the Applet online at the mindprod site without installing it. Why the striped triangle icon? It is supposed to represent items sorted in descending order. Each bar is a litter shorter than the previous.

Changes: add JDK 1.8 support. Add enum support.

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/applet/comparatorcutter.html

Comparator Cutter screenshot

...

Special permissions

You may include COMPARATORCUTTER on any CD compilation. You may not sell COMPARATORCUTTER. It is free.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more