Class Version


  • @ApplicationScoped
    public class Version
    extends Object
    A class that provides information about the version of this library.
    • Constructor Detail

      • Version

        public Version()
        Constructs a new instance of this class, initializing the version constants.
    • Method Detail

      • getVersion

        public String getVersion()
        Returns the version of this library.
        Returns:
        the version of this library
        See Also:
        getDisplayVersion()
      • getCommitId

        public String getCommitId()
        Returns the commit ID from which this library was built.
        Returns:
        the commit ID from which this library was built
        See Also:
        getDisplayVersion()
      • getBuildTimestamp

        public Instant getBuildTimestamp()
        Returns the build timestamp at which this library was built.
        Returns:
        the build timestamp at which this library was built
        See Also:
        getDisplayVersion()
      • getDisplayVersion

        public String getDisplayVersion()
        Returns the display version of this library. If the current version is a release version, it is equal to version. If the current version is a snapshot version, it consists of the version, the commitId, and the buildTimestamp. For displaying the version somewhere it is best to use this method.
        Returns:
        the display version of this library
        See Also:
        getVersion(), getCommitId(), getDisplayVersion()