Class Semver


  • public class Semver
    extends Object
    • Method Detail

      • version

        public String version()
      • major

        public Long major()
      • minor

        public Long minor()
      • patch

        public Long patch()
      • prerelease

        public String[] prerelease()
      • metadata

        public String metadata()
      • isStable

        public boolean isStable()
      • compare

        public int compare​(Semver toCompare)
        Precedence comparision between 2 Semver objects.
        Returns:
        the value 0 if this == toCompare; a value less than 0 if this < toCompare; and a value greater than 0 if this > toCompare