org.apache.ivy.plugins.latest

Class LatestRevisionStrategy.ArtifactInfoComparator

final class LatestRevisionStrategy.ArtifactInfoComparator extends Object implements Comparator

Compares two ArtifactInfo by their revision. Revisions are compared using an algorithm inspired by PHP version_compare one, unless a dynamic revision is given, in which case the version matcher is used to perform the comparison.
Method Summary
intcompare(Object o1, Object o2)

Method Detail

compare

public int compare(Object o1, Object o2)