Class VersionInfo
java.lang.Object
ca.phon.app.VersionInfo
- All Implemented Interfaces:
Comparable<VersionInfo>
Methods for determining the version number of the application.
Version information is read from the file: phon.build.properties
which should be located in the root of the class loader.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this version matches the given version test string.intintgetBuild()static VersionInfoGet the shared instanceintintReturn the numerical version (major.minor.patch)intReturns full version text including prerelease and build values.Return the version w/o buildbooleantoString()
-
Field Details
-
PHON_VERSION_PROP
- See Also:
-
-
Constructor Details
-
VersionInfo
-
-
Method Details
-
getInstance
Get the shared instance -
isDevVersion
public boolean isDevVersion() -
check
Check if this version matches the given version test string. SeeVersion.satisfies(java.lang.String)- Parameters:
vertest-- Returns:
trueif this version matches given test string,falseotherwise
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getPatchVersion
public int getPatchVersion() -
getPreRelease
-
getBuild
-
getVersion
Returns full version text including prerelease and build values.- Returns:
-
getVersionNoBuild
-
getNumericalVersion
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<VersionInfo>
-
compareTo
-