Class SemVer.SemVerCreator

  • Enclosing class:
    SemVer

    public static class SemVer.SemVerCreator
    extends Object
    Construit un objet version, la verification de la coherence est faite lors de l'appel du create.
    • Field Detail

      • version

        protected String version
      • prerelease

        protected String prerelease
      • build

        protected String build
      • snapshot

        protected String snapshot
    • Constructor Detail

      • SemVerCreator

        public SemVerCreator()
    • Method Detail

      • incVersion

        public SemVer.SemVerCreator incVersion​(int indice,
                                               int inc)
        Incremente la composante 'indice' de l'element version de 'inc', la composante doit representer un entier sinon une exception est leve
        Parameters:
        indice - la composante de la version a incrementer
        inc - le nombre a lui ajouter
        Returns:
        new instance, this SemVer is not modified
      • incMajor

        public SemVer.SemVerCreator incMajor()
        Return new instance, this SemVer is not modified
        Returns:
        new instance where major version number is incremented by 1
      • incMinor

        public SemVer.SemVerCreator incMinor()
        Return new instance, this SemVer is not modified
        Returns:
        new instance where major version number is incremented by 1
      • incPatch

        public SemVer.SemVerCreator incPatch()
        Return new instance, this SemVer is not modified
        Returns:
        new instance where major version number is incremented by 1