Interface VersionMatcher

    • Field Detail

      • COMPARATOR

        static final Comparator<String> COMPARATOR
        Copied from https://raw.githubusercontent.com/wolfc/updepres/master/model/src/main/java/org/jboss/up/depres/version/VersionComparator.java FIXME: proper attribution
    • Method Detail

      • getLatestVersion

        static Optional<String> getLatestVersion​(Set<String> versions)
        Determine the latest version among the parameters based on the COMPARATOR.
        Parameters:
        versions - a Set of versions
        Returns:
        an Optional of the latest version.