Package VASSAL.tools.version
Class VersionUtils
java.lang.Object
VASSAL.tools.version.VersionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareReportable(String version)static intcompareVersions(String v0, String v1)Compares version strings.static booleanstatic BooleanisUpdateable(String runningVersion)Deprecated, for removal: This API element is subject to removal in a future version.static Stringstatic voidstatic 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 == v1or if the ordering cannot be determined from the parsable parts of the twoStrings.
-
nextMinorVersion
-
truncateToMinorVersion
-
isCurrent(java.lang.String)instead