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, toStringpublic ComparatorLatestStrategy()
public ComparatorLatestStrategy(java.util.Comparator<ArtifactInfo> comparator)
public java.util.List<ArtifactInfo> sort(ArtifactInfo[] infos)
LatestStrategyinfos - ArtifactInfo[]public java.util.Comparator<ArtifactInfo> getComparator()
public void setComparator(java.util.Comparator<ArtifactInfo> comparator)
Copyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.