fr.jayasoft.ivy.latest
Class LatestLexicographicStrategy

java.lang.Object
  extended byfr.jayasoft.ivy.latest.AbstractLatestStrategy
      extended byfr.jayasoft.ivy.latest.LatestLexicographicStrategy
All Implemented Interfaces:
IvyAware, LatestStrategy

public class LatestLexicographicStrategy
extends AbstractLatestStrategy


Constructor Summary
LatestLexicographicStrategy()
           
 
Method Summary
 ArtifactInfo findLatest(ArtifactInfo[] artifacts, java.util.Date date)
          Finds the latest artifact among the given artifacts info.
 
Methods inherited from class fr.jayasoft.ivy.latest.AbstractLatestStrategy
getIvy, getName, setIvy, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatestLexicographicStrategy

public LatestLexicographicStrategy()
Method Detail

findLatest

public ArtifactInfo findLatest(ArtifactInfo[] artifacts,
                               java.util.Date date)
Description copied from interface: LatestStrategy
Finds 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.

Parameters:
artifacts -
date -
Returns:
the latest artifact among the given ones.