Class VersionComparator

java.lang.Object
com.avoka.core.util.ver.VersionComparator
All Implemented Interfaces:
Comparator<String>

public class VersionComparator extends Object implements Comparator<String>
Provides a simple comparator that compares two version strings.
Since:
18.4.0
See Also:
  • Constructor Details

    • VersionComparator

      public VersionComparator()
  • Method Details

    • compare

      public int compare(String versionString1, String versionString2)
      Compare two version strings.
      Specified by:
      compare in interface Comparator<String>
      Parameters:
      versionString1 - a valid version string (@see Version)
      versionString2 - a valid version string (@see Version)
      Returns:
      the comparison value between the two version strings (@see Comparator)