Package net.infonode.util
Class ProductVersion
- java.lang.Object
-
- net.infonode.util.ProductVersion
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductVersion extends java.lang.Object implements java.io.SerializableA class that represents a product version- Version:
- $Revision: 1.3 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intmajorprivate intminorprivate intpatchprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ProductVersion(int major, int minor, int patch)Constructs a product version object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajor()Gets the major version number, i.e.intgetMinor()Gets the minor version number, i.e.intgetPatch()Gets the patch version number, i.e.java.lang.StringtoString()Gets the version as string
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
major
private int major
-
minor
private int minor
-
patch
private int patch
-
-
Method Detail
-
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
public java.lang.String toString()
Gets the version as string- Overrides:
toStringin classjava.lang.Object- Returns:
- Version as string
-
-