Package com.vaadin.flow.server
Class Version
- java.lang.Object
-
- com.vaadin.flow.server.Version
-
- All Implemented Interfaces:
Serializable
public class Version extends Object implements Serializable
Provides information about the current version of Vaadin Flow.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBuildHash()Gets the version's build hash.static StringgetBuildIdentifier()Gets the version qualifier, qualifier in x.y.z.qualifier.static StringgetFullVersion()Gets the full version, in format x.y.z or x.y.z.qualifier.static intgetMajorVersion()Gets the major version, x in x.y.z.qualifier.static intgetMinorVersion()Gets the minor version, y in x.y.z.qualifier.static intgetRevision()Gets the revision, z in x.y.z.qualifier.
-
-
-
Method Detail
-
getFullVersion
public static String getFullVersion()
Gets the full version, in format x.y.z or x.y.z.qualifier.- Returns:
- the full version number
-
getMajorVersion
public static int getMajorVersion()
Gets the major version, x in x.y.z.qualifier.- Returns:
- the major version number
-
getMinorVersion
public static int getMinorVersion()
Gets the minor version, y in x.y.z.qualifier.- Returns:
- the minor version number
-
getRevision
public static int getRevision()
Gets the revision, z in x.y.z.qualifier.- Returns:
- the revision number
-
getBuildIdentifier
public static String getBuildIdentifier()
Gets the version qualifier, qualifier in x.y.z.qualifier.- Returns:
- the version qualifier
-
getBuildHash
public static String getBuildHash()
Gets the version's build hash. This hash is based on build's timestamp and varies from build to build.- Returns:
- version's build hash
-
-