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$ $Date$
    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)