Class VersionUtils

java.lang.Object
VASSAL.tools.version.VersionUtils

public class VersionUtils extends Object
  • Constructor Details

    • VersionUtils

      protected VersionUtils()
  • Method Details

    • isCurrent

      public static boolean isCurrent(String version) throws IOException
      Throws:
      IOException
    • compareVersions

      public static int compareVersions(String v0, String v1)
      Compares version strings.
      Returns:
      negative if v0 < v1, positive if v0 > v1, and zero if v0 == v1 or if the ordering cannot be determined from the parsable parts of the two Strings.
    • isUpdateable

      public static Boolean isUpdateable(String runningVersion) throws IOException
      Throws:
      IOException
    • nextMinorVersion

      public static String nextMinorVersion(String v)
    • truncateToMinorVersion

      public static String truncateToMinorVersion(String v)
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException