Package org.apache.ivy.plugins.latest
Class LatestLexicographicStrategy
- java.lang.Object
-
- org.apache.ivy.plugins.latest.AbstractLatestStrategy
-
- org.apache.ivy.plugins.latest.ComparatorLatestStrategy
-
- org.apache.ivy.plugins.latest.LatestLexicographicStrategy
-
- All Implemented Interfaces:
LatestStrategy
public class LatestLexicographicStrategy extends ComparatorLatestStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<ArtifactInfo>
COMPARATOR
Compares two revisions.
-
Constructor Summary
Constructors Constructor Description LatestLexicographicStrategy()
-
Method Summary
-
Methods inherited from class org.apache.ivy.plugins.latest.ComparatorLatestStrategy
getComparator, setComparator, sort
-
Methods inherited from class org.apache.ivy.plugins.latest.AbstractLatestStrategy
findLatest, getName, setName, toString
-
-
-
-
Field Detail
-
COMPARATOR
private static final java.util.Comparator<ArtifactInfo> COMPARATOR
Compares two revisions. Revisions are compared lexicographically unless a 'latest' revision is found. If the latest revision found is an absolute latest (latest. like), then it is assumed to be the greater. If a partial latest is found, then it is assumed to be greater than any matching fixed revision.
-
-