|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdepend.framework.PackageComparator
The PackageComparator
class is
a Comparator
used to compare two
JavaPackage
instances for order
using a sorting strategy.
Constructor Summary | |
PackageComparator(PackageComparator byWhat)
Constructs a PackageComparator with
the specified comparison strategy. |
Method Summary | |
static PackageComparator |
byName()
Returns a comparator for the package name. |
PackageComparator |
byWhat()
Returns the current comparison strategy. |
int |
compare(java.lang.Object p1,
java.lang.Object p2)
Compares the specified objects for order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Constructor Detail |
public PackageComparator(PackageComparator byWhat)
PackageComparator
with
the specified comparison strategy.
byWhat
- Comparison strategy.Method Detail |
public static PackageComparator byName()
public PackageComparator byWhat()
public int compare(java.lang.Object p1, java.lang.Object p2)
compare
in interface java.util.Comparator
p1
- First package.p2
- Second package.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |