Version

data class Version(val nums: List<Long>, val pre: PreRelease?, val revision: String, val letter: Int = 0)(source)

letter is the b of a tzdata-style 2026b as 2, and 0 when absent; VersionScheme.OPENSSL reads the w of 1.1.1w the same way.

Constructors

Link copied to clipboard
constructor(nums: List<Long>, pre: PreRelease?, revision: String, letter: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val letter: Int
Link copied to clipboard
val nums: List<Long>
Link copied to clipboard
Link copied to clipboard

Functions

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

Total order: compareCore, then the revision text.

Link copied to clipboard
fun compareCore(other: Version): Int

Compares the numbers, the letter, then the pre-release; the revision text is ignored.