Package org.atmosphere.util
Class Version
java.lang.Object
org.atmosphere.util.Version
Class contains information about Atmosphere framework
- Author:
- Charlie Hunt, Hubert Iwaniuk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequalVersion(int major, int minor) Checks if current Atmosphere framework version equals to one passedstatic StringReturn the dotted version of the curent release.static intGet Atmosphere framework major versionstatic intReturn the micro versionstatic intGet Atmosphere framework minor versionstatic StringReturn the raw version derived frok the project's pom.xmlstatic void
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
main
-
getRawVersion
Return the raw version derived frok the project's pom.xml- Returns:
-
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
-