Package VASSAL.tools.version
Class VersionUtils
java.lang.Object
VASSAL.tools.version.VersionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareVersions(String v0, String v1)Compares version strings.static booleanstatic BooleanisUpdateable(String runningVersion)static voidstatic Stringstatic String
-
Constructor Details
-
VersionUtils
protected VersionUtils()
-
-
Method Details
-
isCurrent
- 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.
-
isUpdateable
- Throws:
IOException
-
nextMinorVersion
-
truncateToMinorVersion
-
main
- Throws:
IOException
-