KmVersion

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

Represents a version used in a version requirement.

Constructors

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

Properties

Link copied to clipboard
val major: Int

the major component of the version (e.g. "1" in "1.2.3")

Link copied to clipboard
val minor: Int

the minor component of the version (e.g. "2" in "1.2.3")

Link copied to clipboard
val patch: Int

the patch component of the version (e.g. "3" in "1.2.3")

Functions

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

Returns a string representation of this version in "$major.$minor.$patch" form.