ComparatorCutter

ComparatorCutter
  
            License: Freeware $0.00
            OS: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x
            Requirements: java jdk 1.5+
            Publisher: Canadian Mind Products
            Homepage: http://mindprod.com
          

comparator cutter is an applet that generates generates
custom java code to implemet comparable/comparator. the
applet lets 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 sort.
if you want code that will handle null sort keys, tick off null safe.

comparatorcutter runs either as an application or as an
applet that needs to run in jdk 1 5+ capable browser.
source code and sample html included.

you can run it online at online at the mindprod site without installing it.


Share this post