Class CodeVersion

  • All Implemented Interfaces:
    Serializable, Comparable<Version>

    public class CodeVersion
    extends Version
    A code version represents the version of the code. It is used by FoundationVersion to report exact build information.
    Since:
    5.0
    Author:
    F. van der Meer
    See Also:
    Serialized Form
    • Constructor Detail

      • CodeVersion

        public CodeVersion​(String releaseName,
                           int major,
                           int minor,
                           String patch,
                           String revision)
        Constructs the code version with the required arguments.
        Parameters:
        releaseName - The name of the release, may not be null.
        major - The major version of the release.
        minor - The minor version of the release.
        patch - The patch version of the release, may not be null.
        revision - The revision of the release, may not be null.
      • CodeVersion

        public CodeVersion​(String releaseName,
                           int major,
                           int minor,
                           String patch,
                           String revision,
                           String edition)
        Constructs the code version with the required arguments.
        Parameters:
        releaseName - The name of the release, may not be null.
        major - The major version of the release.
        minor - The minor version of the release.
        patch - The patch version of the release, may not be null.
        revision - The revision of the release, may not be null.
        edition - The edition of the release, may be null.
    • Method Detail

      • getString

        public String getString()
        This method returns a string representation of the code version.
        Overrides:
        getString in class Version
        Returns:
        a string representation of the code version.
      • getReleaseName

        public String getReleaseName()
        This method returns the release name of the code version.
        Returns:
        the release name of the code version.
      • getRevision

        public String getRevision()
        This method returns the revision number of the code version.
        Returns:
        the revision number of the code version.
      • getEdition

        public String getEdition()
        This method returns the edition of the code version.
        Returns:
        the edition of the code version, may be null.