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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<ArtifactInfo>
Compares two revisions. -
Constructor Summary
Constructors -
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 Details
-
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.
-
-
Constructor Details
-
LatestLexicographicStrategy
public LatestLexicographicStrategy()
-