AvailVersion

data class AvailVersion(val major: Int, val minor: Int, val revision: Int, val suffix: AvailVersion.Suffix, val suffixVersion: Int = 0, val isValid: Boolean = true) : Comparable<AvailVersion>

A version for Avail.

Author

Richard Arriaga

Constructors

Link copied to clipboard
constructor(major: Int, minor: Int, revision: Int, suffix: AvailVersion.Suffix, suffixVersion: Int = 0, isValid: Boolean = true)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The acceptable suffixes for an AvailVersion. The enum name is what should be used as the actual suffix.

Properties

Link copied to clipboard
val isValid: Boolean = true

true indicates it is a valid version; false otherwise. Only INVALID should be invalid.

Link copied to clipboard
val major: Int

The numeric major revision of the version.

Link copied to clipboard
val minor: Int

The numeric minor revision of the version.

Link copied to clipboard

The numeric revision of the version.

Link copied to clipboard

The Suffix of the version.

Link copied to clipboard

The numeric version of the suffix; e.g. alpha01.

Link copied to clipboard

The stringified version.

Functions

Link copied to clipboard
open operator override fun compareTo(other: AvailVersion): Int
Link copied to clipboard
open override fun toString(): String