CompareClassPdiffs.javaAPI DocAndroid 1.5 API632Wed May 06 22:41:22 BST 2009jdiff


public class CompareClassPdiffs extends Object implements Comparator
Class to compare two ClassDiff objects. See the file LICENSE.txt for copyright details.
Matthew Doar,

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object obj1, java.lang.Object obj2)
Compare two class diffs by their percentage difference, and then by name.

        ClassDiff c1 = (ClassDiff)obj1;
        ClassDiff c2 = (ClassDiff)obj2;
        if (c1.pdiff < c2.pdiff)
            return 1;
        if (c1.pdiff > c2.pdiff)
            return -1;
        return c1.name_.compareTo(c2.name_);