Class Version

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IVersion>, IVersion

    public class Version
    extends java.lang.Object
    implements IVersion
    Version implementation for deployment Component.
    Since:
    7.1.0
    Version:
    $Revision: 16037 $ $Date: 2013-11-21 20:58:50 -0200 (Thu, 21 Nov 2013) $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Version​(int major, int minor, int release, int build)  
    • Constructor Detail

      • Version

        public Version​(int major,
                       int minor,
                       int release,
                       int build)
    • Method Detail

      • compareTo

        public int compareTo​(IVersion o)
        Specified by:
        compareTo in interface java.lang.Comparable<IVersion>
      • getMajor

        public int getMajor()
        Description copied from interface: IVersion
        Returns the major version number.
        Specified by:
        getMajor in interface IVersion
        Returns:
        the major version number.
      • getMinor

        public int getMinor()
        Description copied from interface: IVersion
        Returns the minor version number.
        Specified by:
        getMinor in interface IVersion
        Returns:
        the minor version number.
      • getRelease

        public int getRelease()
        Description copied from interface: IVersion
        Returns the release version number.
        Specified by:
        getRelease in interface IVersion
        Returns:
        the release version number.
      • getBuild

        public int getBuild()
        Description copied from interface: IVersion
        Returns the build version number.
        Specified by:
        getBuild in interface IVersion
        Returns:
        the build version number.
      • fromString

        public static Version fromString​(java.lang.String raw)