public class ComparatorLatestStrategy extends AbstractLatestStrategy
Constructor and Description |
---|
ComparatorLatestStrategy() |
ComparatorLatestStrategy(java.util.Comparator<ArtifactInfo> comparator) |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<ArtifactInfo> |
getComparator() |
void |
setComparator(java.util.Comparator<ArtifactInfo> comparator) |
java.util.List<ArtifactInfo> |
sort(ArtifactInfo[] infos)
Sorts the given artifacts info from the oldest one to the latest one.
|
findLatest, getName, setName, toString
public ComparatorLatestStrategy()
public ComparatorLatestStrategy(java.util.Comparator<ArtifactInfo> comparator)
public java.util.List<ArtifactInfo> sort(ArtifactInfo[] infos)
LatestStrategy
infos
- ArtifactInfo[]public java.util.Comparator<ArtifactInfo> getComparator()
public void setComparator(java.util.Comparator<ArtifactInfo> comparator)
Copyright ©2007-2020 The Apache Software Foundation, Licensed under Apache License, Version 2.0.