Class SaltVersion

    • Constructor Detail

      • SaltVersion

        public SaltVersion​(int year,
                           int month,
                           int bugfix,
                           Optional<Integer> releaseCandidate)
        Creates a SaltVersion
        Parameters:
        year - Year of the release
        month - Month of the release
        bugfix - Bugfix number incremented withing a feature release
        releaseCandidate - Optional release candidate tag
      • SaltVersion

        public SaltVersion​(int year,
                           int month,
                           int bugfix,
                           int releaseCandidate)
        Creates a SaltVersion
        Parameters:
        year - Year of the release
        month - Month of the release
        bugfix - Bugfix number incremented withing a feature release
        releaseCandidate - release candidate tag
      • SaltVersion

        public SaltVersion​(int year,
                           int month,
                           int bugfix)
        Creates a SaltVersion without release candidate tag
        Parameters:
        year - Year of the release
        month - Month of the release
        bugfix - Bugfix number incremented withing a feature release
    • Method Detail

      • parse

        public static Optional<SaltVersion> parse​(String versionString)
        Parses a salt version string
        Parameters:
        versionString - the salt version string
        Returns:
        SaltVersion if the versionString is valid or empty Optional if not.
      • getReleaseCandidate

        public Optional<Integer> getReleaseCandidate()
        Getter for the release candidate of this SaltVersion
        Returns:
        the optional release candidate
      • getYear

        public int getYear()
        Getter for the year of this SaltVersion
        Returns:
        the year
      • getMonth

        public int getMonth()
        Getter for the month of this SaltVersion
        Returns:
        the month
      • getBugfix

        public int getBugfix()
        Getter for the bugfix of this SaltVersion
        Returns:
        the bugfix number