Class VersionComparator

    • Constructor Detail

      • VersionComparator

        public VersionComparator()
    • Method Detail

      • compareVersion

        public static int compareVersion​(String v1,
                                         String v2)
        Compares the first version against the second version.
        Parameters:
        v1 - first version
        v2 - second version
        Returns:
        0 if the versions are equal, -1 if version first version is less than the second version or 1 if the first version is greater than the second version
        See Also:
        Comparator.compare(Object, Object)