Class Version

java.lang.Object
org.atmosphere.util.Version

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

    • Version

      public Version()
  • Method Details

    • main

      public static void main(String[] args)
    • getRawVersion

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

      public static 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