SemVer

data class SemVer(val major: Int, val minor: Int, val patch: Int)

An object for holding Semantic Versioning version names.

Follows the Semanting Versioning rules: https://semver.org/

Author

Arnau Mora

Since

20220711

Constructors

Link copied to clipboard
fun SemVer(major: Int, minor: Int, patch: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun compare(other: SemVer): Int

Compares two SemVers and returns a SemVerComparison according to the differences. One of the following will happen:

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val major: Int
Link copied to clipboard
val minor: Int
Link copied to clipboard
val patch: Int