ComparePkgPdiffspublic class ComparePkgPdiffs extends Object implements Comparator
|Class to compare two PackageDiff objects.
See the file LICENSE.txt for copyright details.|
|public int||compare(java.lang.Object obj1, java.lang.Object obj2)|
Compare two package diffs by their percentage difference,
and then by name.
PackageDiff p1 = (PackageDiff)obj1;
PackageDiff p2 = (PackageDiff)obj2;
if (p1.pdiff < p2.pdiff)
if (p1.pdiff > p2.pdiff)