Package com.vaadin.flow.server
Class Version
java.lang.Object
com.vaadin.flow.server.Version
- All Implemented Interfaces:
Serializable
Provides information about the current version of Vaadin Flow.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the version's build hash.static StringGets the version qualifier, qualifier in x.y.z.qualifier.static StringGets the full version, in format x.y.z or x.y.z.qualifier.static intGets the major version, x in x.y.z.qualifier.static intGets the minor version, y in x.y.z.qualifier.static intGets the revision, z in x.y.z.qualifier.
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
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
Gets the version qualifier, qualifier in x.y.z.qualifier.- Returns:
- the version qualifier
-
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
-