Package ca.phon.app
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this version matches the given version test string.int
int
getBuild()
static VersionInfo
Get the shared instanceint
int
Return the numerical version (major.minor.patch)int
Returns full version text including prerelease and build values.Return the version w/o buildboolean
toString()
-
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:
true
if this version matches given test string,false
otherwise
-
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
Return the version w/o build- Returns:
- version string w/o build
-
getNumericalVersion
Return the numerical version (major.minor.patch)- Returns:
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VersionInfo>
-
compareTo
-