Package org.apache.ivy.plugins.latest
Class AbstractLatestStrategy
java.lang.Object
org.apache.ivy.plugins.latest.AbstractLatestStrategy
- All Implemented Interfaces:
LatestStrategy
- Direct Known Subclasses:
ComparatorLatestStrategy,WorkspaceLatestStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLatest(ArtifactInfo[] infos, Date date) Finds the latest artifact among the given artifacts info.getName()voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.ivy.plugins.latest.LatestStrategy
sort
-
Constructor Details
-
AbstractLatestStrategy
public AbstractLatestStrategy()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceLatestStrategy
-
setName
-
toString
-
findLatest
Description copied from interface:LatestStrategyFinds the latest artifact among the given artifacts info. The definition of 'latest' depends on the strategy itself. Given artifacts info are all good candidate. If the given date is not null, then found artifact should not be later than this date.- Specified by:
findLatestin interfaceLatestStrategy- Parameters:
infos- ArtifactInfo[]date- Date- Returns:
- the latest artifact among the given ones.
-