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
fun AvailVersion(    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
enum Suffix : Enum<AvailVersion.Suffix>

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

Functions

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

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
val revision: Int

The numeric revision of the version.

Link copied to clipboard
val suffix: AvailVersion.Suffix

The Suffix of the version.

Link copied to clipboard
val suffixVersion: Int = 0

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

Link copied to clipboard
val version: String

The stringified version.