org.atmosphere.util
Class Version

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

public class Version
extends Object

Class contains information about Atmosphere framework

Author:
Charlie Hunt, Hubert Iwaniuk

Constructor Summary
Version()
           
 
Method Summary
static boolean equalVersion(int major, int minor)
          Checks if current Atmosphere framework version equals to one passed
static 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 String getRawVersion()
          Return the raw version derived frok the project's pom.xml
static void main(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(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


Copyright © 2013. All Rights Reserved.