Package io. github. z4kn4fein. semver
Types
Link copied to clipboard
This class describes a semantic version and related operations.
Link copied to clipboard
Version throws this exception when the parsing fails due to an invalid format.
Functions
Link copied to clipboard
fun Version.copy(major: Int = this.major, minor: Int = this.minor, patch: Int = this.patch, preRelease: String? = this.preRelease, buildMetadata: String? = this.buildMetadata): Version
Content copied to clipboard
Constructs a copy of the Version. The copied object's properties can be altered with the optional parameters.
Link copied to clipboard
Increments the version by its PRE-RELEASE part. Returns a new version while the original remains unchanged.
Link copied to clipboard
Parses the string as a Version and returns the result or null if the string is not a valid representation of a semantic version.