Package net.infonode.util
Class ProductVersion
java.lang.Object
net.infonode.util.ProductVersion
- All Implemented Interfaces:
Serializable
A class that represents a product version
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProductVersion
(int major, int minor, int patch) Constructs a product version object -
Method Summary
-
Constructor Details
-
ProductVersion
public ProductVersion(int major, int minor, int patch) Constructs a product version object- Parameters:
major
- Major version numberminor
- Minor version numberpatch
- Patch version number
-
-
Method Details
-
getMajor
public int getMajor()Gets the major version number, i.e. the number X in version X.0.0- Returns:
- Major version number
-
getMinor
public int getMinor()Gets the minor version number, i.e. the number X in version 0.X.0- Returns:
- Minor version number
-
getPatch
public int getPatch()Gets the patch version number, i.e. the number X in version 0.0.X- Returns:
- Minor version number
-
toString
Gets the version as string
-