de.matthias_burbach.deputy.core.project
Class ProjectComparator
java.lang.Object
de.matthias_burbach.deputy.core.project.ProjectComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class ProjectComparator
- extends java.lang.Object
- implements java.util.Comparator
Compares objects of type ProjectQualifier
.
Does not consider the group id but assumes that equal artifact ids imply
equal group ids.
- Author:
- Matthias Burbach
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 |
ProjectComparator
public ProjectComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
-
- Specified by:
compare
in interface java.util.Comparator
getArtifactId1
protected java.lang.String getArtifactId1(ProjectQualifier pq1,
ProjectQualifier pq2)
- Parameters:
pq1
- The project qualifier 1 to be compared with pq2.pq2
- The project qualifier 2 to be compared with pq1
- Returns:
- The artifact id 1 to be used in comparisons.
getArtifactId2
protected java.lang.String getArtifactId2(ProjectQualifier pq1,
ProjectQualifier pq2)
- Parameters:
pq1
- The project qualifier 1 to be compared with pq2.pq2
- The project qualifier 2 to be compared with pq1
- Returns:
- The artifact id 2 to be used in comparisons.
getVersion1
protected java.lang.String getVersion1(ProjectQualifier pq1,
ProjectQualifier pq2)
- Parameters:
pq1
- The project qualifier 1 to be compared with pq2.pq2
- The project qualifier 2 to be compared with pq1
- Returns:
- The version 1 to be used in comparisons.
getVersion2
protected java.lang.String getVersion2(ProjectQualifier pq1,
ProjectQualifier pq2)
- Parameters:
pq1
- The project qualifier 1 to be compared with pq2.pq2
- The project qualifier 2 to be compared with pq1
- Returns:
- The version 2 to be used in comparisons.
Copyright © 2005-2007 . All Rights Reserved.