Class VersionUtils

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

public class VersionUtils extends Object
  • Constructor Details

    • VersionUtils

      protected VersionUtils()
  • Method Details

    • setVersionInfo

      public static void setVersionInfo(VersionInfo vi)
    • compareReportable

      public static int compareReportable(String version) throws IOException
      Throws:
      IOException
    • isCurrent

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

      @Deprecated(since="2021-04-15", forRemoval=true) public static Boolean isUpdateable(String runningVersion) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • nextMinorVersion

      public static String nextMinorVersion(String v)
    • truncateToMinorVersion

      public static String truncateToMinorVersion(String v)
    • truncateToIncrementalVersion

      public static String truncateToIncrementalVersion(String v)