Class ComparatorLatestStrategy

    • Constructor Detail

      • ComparatorLatestStrategy

        public ComparatorLatestStrategy()
      • ComparatorLatestStrategy

        public ComparatorLatestStrategy​(java.util.Comparator comparator)
    • Method Detail

      • sort

        public java.util.List sort​(ArtifactInfo[] infos)
        Description copied from interface: LatestStrategy
        Sorts the given artifacts info from the oldest one to the latest one. The definition of 'latest' depends on the strategy itself. Given artifacts info are all good candidate.
        Returns:
      • getComparator

        public java.util.Comparator getComparator()
      • setComparator

        public void setComparator​(java.util.Comparator comparator)