Package ca.corbett.updates
Class VersionManifest.ApplicationVersion
java.lang.Object
ca.corbett.updates.VersionManifest.ApplicationVersion
- Enclosing class:
VersionManifest
Represents a single version of the application in question, along with all of its
compatible extensions.
- Author:
- scorbo2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(VersionManifest.Extension extension) voidbooleanReturns a copy of the list of all extensions for this application version.For each Extension in this application version, find and return its highest ExtensionVersion.intExtracts just the major version number from the version string, if possible.inthashCode()voidremoveExtension(VersionManifest.Extension extension) voidsetVersion(String version)
-
Constructor Details
-
ApplicationVersion
public ApplicationVersion()
-
-
Method Details
-
getVersion
-
getMajorVersion
public int getMajorVersion()Extracts just the major version number from the version string, if possible. Will return AppExtensionInfo.INVALID if it cannot be determined. -
setVersion
-
getExtensions
Returns a copy of the list of all extensions for this application version. -
getHighestExtensionVersions
For each Extension in this application version, find and return its highest ExtensionVersion. -
addExtension
-
removeExtension
-
clearExtensions
public void clearExtensions() -
equals
-
hashCode
public int hashCode()
-