org.codehaus.mojo.versions.utils
Class DependencyComparator
java.lang.Object
org.codehaus.mojo.versions.utils.DependencyComparator
- All Implemented Interfaces:
- Comparator
public class DependencyComparator
- extends Object
- implements Comparator
A comparator used to sort dependencies by group id, artifact id and finally version.
- Since:
- 1.0-alpha-1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyComparator
public DependencyComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- the first objecto2
- the second object.
- Returns:
- the comparison result
- Since:
- 1.0-alpha-1
- See Also:
Comparator.compare(Object, Object)
Copyright © 2008-2011 Codehaus. All Rights Reserved.