CompareClassPdiffspublic class CompareClassPdiffs extends Object implements ComparatorClass to compare two ClassDiff objects.
See the file LICENSE.txt for copyright details. |
Methods Summary |
---|
public int | compare(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_);
|
|