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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the version's build hash.static String
Gets the version qualifier, qualifier in x.y.z.qualifier.static String
Gets the full version, in format x.y.z or x.y.z.qualifier.static int
Gets the major version, x in x.y.z.qualifier.static int
Gets the minor version, y in x.y.z.qualifier.static int
Gets 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
-