org.apache.ivy.plugins.latest
Class LatestRevisionStrategy
java.lang.Object
org.apache.ivy.plugins.latest.AbstractLatestStrategy
org.apache.ivy.plugins.latest.ComparatorLatestStrategy
org.apache.ivy.plugins.latest.LatestRevisionStrategy
- All Implemented Interfaces:
- IvyAware, LatestStrategy
public class LatestRevisionStrategy
- extends ComparatorLatestStrategy
Field Summary |
java.util.Comparator |
COMPARATOR
Compares two ArtifactInfo by their revision. |
java.util.Comparator |
STATIC_COMPARATOR
Compares two ModuleRevisionId by their revision. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STATIC_COMPARATOR
public final java.util.Comparator STATIC_COMPARATOR
- Compares two ModuleRevisionId by their revision.
Revisions are compared using an algorithm inspired by PHP
version_compare one.
COMPARATOR
public java.util.Comparator 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.
LatestRevisionStrategy
public LatestRevisionStrategy()
addConfiguredSpecialMeaning
public void addConfiguredSpecialMeaning(LatestRevisionStrategy.SpecialMeaning meaning)
getSpecialMeanings
public java.util.Map getSpecialMeanings()
isUsedefaultspecialmeanings
public boolean isUsedefaultspecialmeanings()
setUsedefaultspecialmeanings
public void setUsedefaultspecialmeanings(boolean usedefaultspecialmeanings)