ReadonlybuildThe build number part of the version.
e.g. 20240122001 from 1.2.3+20240122001
ReadonlyhotfixThe hot fix part of the version e.g. 4 from 1.2.3.4
ReadonlyisIndicates that the version is a pre-release version.
ReadonlymajorThe major part of the version e.g. 1 from 1.2.3
ReadonlyminorThe minor part of the version e.g. 2 from 1.2.3
ReadonlypatchThe patch part of the version e.g. 3 from 1.2.3
ReadonlyprereleaseThe parts of the pre-release string of the version e.g. [RC, 1] from 1.2.3-RC-1
ReadonlyversionThe version as text.
Compares this version to another version.
The other version.
x < 0: this version lower, x > 0:this version greater, x = 0: both versions are equal
Check, if this version equals another version.
The other version.
true if the versions are equal.
Creates the lowest pre-release version of this version.
The lowest pre-release version is a version with the pre-release -0 post fix.
e.g. 1.2.3-0
The lowest pre-release version.
Creates a new version without the build part.
A new version without the build part or the same version, if it has no build part.
Creates new version without pre-release information.
A new version without the pre-release part or the same version if it has no pre-release part.
String representation of the version.
The version as String.
A version number following semantic versioning. See https://semver.org/lang/de/