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, 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.
    For example, the following are all valid version strings:
    • 1.1.2
    • 1.3.5-SNAPSHOT
    • 4.7.1-M2
    • 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.
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • main

        public static void main​(java.lang.String[] args)
      • 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.