public class DependenciesComparator<T> extends Object implements Comparator<T>
Constructor and Description |
---|
DependenciesComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
protected int |
compareDependencies(String group1,
String artifact1,
String version1,
String group2,
String artifact2,
String version2) |
protected int |
compareGAVs(String[] gav1,
String[] gav2) |
void |
setSortByGroups(boolean sortByGroups)
Set this to false to ignore groupIDs while sorting
|
protected String[] |
toGAV(org.apache.maven.model.Dependency dep) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(T o1, T o2)
compare
in interface Comparator<T>
protected String[] toGAV(org.apache.maven.model.Dependency dep)
protected int compareDependencies(String group1, String artifact1, String version1, String group2, String artifact2, String version2)
public void setSortByGroups(boolean sortByGroups)
sortByGroups
- Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.