The API makes it easy to increment a major,minor,patch but does not make it easy to replace any of those with an explicit amount.
That is I would expect the API to have something like:
Version.valueOf("1.0.0") .withPatch(2).toString() == "1.0.2"
And of course if you have build meta data that would be preserved as well and this is of course would be an immutable operation (ie creates another Version).
The API makes it easy to increment a major,minor,patch but does not make it easy to replace any of those with an explicit amount.
That is I would expect the API to have something like:
Version.valueOf("1.0.0") .withPatch(2).toString() == "1.0.2"And of course if you have build meta data that would be preserved as well and this is of course would be an immutable operation (ie creates another Version).