Package VASSAL.tools.version
Class VersionUtils
java.lang.Object
VASSAL.tools.version.VersionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareReportable(String version)
static int
compareVersions(String v0, String v1)
Compares version strings.static boolean
static Boolean
isUpdateable(String runningVersion)
Deprecated, for removal: This API element is subject to removal in a future version.static String
static void
static String
-
Constructor Details
-
VersionUtils
protected VersionUtils()
-
-
Method Details
-
setVersionInfo
-
compareReportable
- Throws:
IOException
-
isCurrent
- Throws:
IOException
-
isUpdateable
@Deprecated(since="2021-04-15", forRemoval=true) public static Boolean isUpdateable(String runningVersion) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.Use !isCurrent(java.lang.String)
instead- Throws:
IOException
-
compareVersions
Compares version strings.- Returns:
- negative if
v0 < v1
, positive ifv0 > v1
, and zero ifv0 == v1
or if the ordering cannot be determined from the parsable parts of the twoString
s.
-
nextMinorVersion
-
truncateToMinorVersion
-
isCurrent(java.lang.String)
instead