org.codehaus.mojo.versions.utils
Class DependencyComparator

java.lang.Object
  extended by 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

Constructor Summary
DependencyComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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

DependencyComparator

public DependencyComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator
Parameters:
o1 - the first object
o2 - 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.