Package org.nuiton.version
Class SemVer.SemVerCreator
- java.lang.Object
-
- org.nuiton.version.SemVer.SemVerCreator
-
-
Constructor Summary
Constructors Constructor Description SemVerCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SemVer
done()
SemVer.SemVerCreator
incMajor()
Return new instance, this SemVer is not modifiedSemVer.SemVerCreator
incMinor()
Return new instance, this SemVer is not modifiedSemVer.SemVerCreator
incPatch()
Return new instance, this SemVer is not modifiedSemVer.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 leveSemVer.SemVerCreator
setBuild(String v)
SemVer.SemVerCreator
setPrerelease(String v)
SemVer.SemVerCreator
setSnapshot(boolean b)
SemVer.SemVerCreator
setVersion(Integer... v)
SemVer.SemVerCreator
setVersion(String v)
-
-
-
Method Detail
-
setVersion
public SemVer.SemVerCreator setVersion(Integer... v)
-
setVersion
public SemVer.SemVerCreator setVersion(String v)
-
setPrerelease
public SemVer.SemVerCreator setPrerelease(String v)
-
setBuild
public SemVer.SemVerCreator setBuild(String v)
-
setSnapshot
public SemVer.SemVerCreator setSnapshot(boolean b)
-
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 incrementerinc
- 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
-
done
public SemVer done()
-
-