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