net.infonode.util

Class ProductVersion

public class ProductVersion extends Object implements Serializable

A class that represents a product version

Version: $Revision: 1.3 $

Author: $Author: jesper $

Constructor Summary
ProductVersion(int major, int minor, int patch)
Constructs a product version object
Method Summary
intgetMajor()
Gets the major version number, i.e. the number X in version X.0.0
intgetMinor()
Gets the minor version number, i.e. the number X in version 0.X.0
intgetPatch()
Gets the patch version number, i.e. the number X in version 0.0.X
StringtoString()
Gets the version as string

Constructor Detail

ProductVersion

public ProductVersion(int major, int minor, int patch)
Constructs a product version object

Parameters: major Major version number minor Minor version number patch Patch version number

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 String toString()
Gets the version as string

Returns: Version as string