Package org.atmosphere.util
Class Version
- java.lang.Object
-
- org.atmosphere.util.Version
-
public class Version extends java.lang.ObjectClass 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 booleanequalVersion(int major, int minor)Checks if current Atmosphere framework version equals to one passedstatic java.lang.StringgetDotedVersion()Return the dotted version of the curent release.static intgetMajorVersion()Get Atmosphere framework major versionstatic intgetMicroVersion()Return the micro versionstatic intgetMinorVersion()Get Atmosphere framework minor versionstatic java.lang.StringgetRawVersion()Return the raw version derived frok the project's pom.xmlstatic voidmain(java.lang.String[] args)
-
-
-
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 versionminor- Atmosphere framework minor version- Returns:
- true, if versions are equal; false otherwise
-
-