public class ProductVersion
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ProductVersion(int major,
int minor,
int patch)
Constructs a product version object
|
Modifier and Type | Method and Description |
---|---|
int |
getMajor()
Gets the major version number, i.e.
|
int |
getMinor()
Gets the minor version number, i.e.
|
int |
getPatch()
Gets the patch version number, i.e.
|
java.lang.String |
toString()
Gets the version as string
|
public ProductVersion(int major, int minor, int patch)
major
- Major version numberminor
- Minor version numberpatch
- Patch version numberpublic int getMajor()
public int getMinor()
public int getPatch()
public java.lang.String toString()
toString
in class java.lang.Object