Package org.hortonmachine.gears.utils
Class HMVersion
- java.lang.Object
-
- org.hortonmachine.gears.utils.HMVersion
-
public class HMVersion extends Object
HortonMachine API version information.Versions consist of a 3-part version number:
major.minor.patchAn optional release status string may be present in the string version of the version.Copied from JTSVersion.
-
-
Field Summary
Fields Modifier and Type Field Description static HMVersionCURRENT_VERSIONThe current version number of the HortonMachine API.static intMAJORThe major version number.static intMINORThe minor version number.static intPATCHThe patch version number.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajor()Gets the major number of the release version.intgetMinor()Gets the minor number of the release version.intgetPatch()Gets the patch number of the release version.static voidmain(String[] args)Prints the current HortonMachine version to stdout.StringtoString()Gets the full version number, suitable for display.
-
-
-
Field Detail
-
CURRENT_VERSION
public static final HMVersion CURRENT_VERSION
The current version number of the HortonMachine API.
-
MAJOR
public static final int MAJOR
The major version number.- See Also:
- Constant Field Values
-
MINOR
public static final int MINOR
The minor version number.- See Also:
- Constant Field Values
-
PATCH
public static final int PATCH
The patch version number.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
Prints the current HortonMachine version to stdout.- Parameters:
args- the command-line arguments (none are required).
-
getMajor
public int getMajor()
Gets the major number of the release version.- Returns:
- the major number of the release version.
-
getMinor
public int getMinor()
Gets the minor number of the release version.- Returns:
- the minor number of the release version.
-
getPatch
public int getPatch()
Gets the patch number of the release version.- Returns:
- the patch number of the release version.
-
-