Class Version


  • public class Version
    extends java.lang.Object
    Class contains information about Atmosphere framework
    Author:
    Charlie Hunt, Hubert Iwaniuk
    • Constructor Summary

      Constructors 
      Constructor Description
      Version()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equalVersion​(int major, int minor)
      Checks if current Atmosphere framework version equals to one passed
      static java.lang.String getDotedVersion()
      Return the dotted version of the curent release.
      static int getMajorVersion()
      Get Atmosphere framework major version
      static int getMicroVersion()
      Return the micro version
      static int getMinorVersion()
      Get Atmosphere framework minor version
      static java.lang.String getRawVersion()
      Return the raw version derived frok the project's pom.xml
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • getRawVersion

        public static java.lang.String getRawVersion()
        Return the raw version derived frok the project's pom.xml
        Returns:
      • getDotedVersion

        public static java.lang.String getDotedVersion()
        Return the dotted version of the curent release.
        Returns:
        like "2.0.1"
      • getMajorVersion

        public static int getMajorVersion()
        Get Atmosphere framework major version
        Returns:
        Atmosphere framework major version
      • getMinorVersion

        public static int getMinorVersion()
        Get Atmosphere framework minor version
        Returns:
        Atmosphere framework minor version
      • getMicroVersion

        public static int getMicroVersion()
        Return the micro version
      • equalVersion

        public static boolean equalVersion​(int major,
                                           int minor)
        Checks if current Atmosphere framework version equals to one passed
        Parameters:
        major - Atmosphere framework major version
        minor - Atmosphere framework minor version
        Returns:
        true, if versions are equal; false otherwise