SemVersion

open class SemVersion(versions: List<Int>)

Represents a semantic version.

Inheritors

Constructors

Link copied to clipboard
constructor(versions: List<Int>)
constructor(version: String)

Creates a new SemVersion from a version string.

Functions

Link copied to clipboard
operator fun compareTo(other: String): Int
operator fun compareTo(other: SemVersion): Int

Compares this version to another version. If the number of components in the versions differ, the version with fewer components is considered less than the other.

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

Returns the string representation of this version.