Class Version


  • public final class Version
    extends java.lang.Object
    The version and build number of this implementation. Version numbers for a release are of the form: w.x.y[-a]-z, where:
    • w - the major version number of the release. This number should start at 1. Typically, a bump in the major version number signifies that the release breaks backwards compatibility with some older release.
    • x - minor version number. This number starts at 0. A bump in the minor version number signifies a release that has significant new functionality.
    • y - minor-minor version number number. This number starts at 0. A bump in the minor-minor version number signifies that new bug fixes have been added to the build.
    • a - an optional build designator followed by a digit. Valid build designators are:
      • alpha
      • beta
    • z - build number. This is used to specify the build number of the release. This is usually only important to people that use the daily build of a project. The format is the lower-case letter 'b' followed by a two digit number.
    For example, the following are all valid version strings:
    • 1.1.2-b02
    • 1.3.5-alpha1-b19
    • 4.7.1-beta3-b20
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getVersion()
      Returns the verison string and build number of this implementation.
      • Methods inherited from class java.lang.Object

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

      • getVersion

        public static java.lang.String getVersion()
        Returns the verison string and build number of this implementation. See the class descritpion for the version string format.
        Returns:
        The version string of this implementation.