Class ProductVersion

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductVersion
    extends java.lang.Object
    implements java.io.Serializable
    A class that represents a product version
    See Also:
    Serialized Form
    • 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
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 java.lang.String toString()
        Gets the version as string
        Overrides:
        toString in class java.lang.Object
        Returns:
        Version as string